Create resolvers and controllers for core views (#13624)
Created: - Services - Resolvers - Controllers - Tests for services - Integration tests for GraphQL and Rest Updated the Rest API playground Added new feature flag `IS_CORE_VIEW_ENABLED` Updated `viewFilter` `operand` and `view` `type` to be enums rather than strings and generated migration file. Closes https://github.com/twentyhq/core-team-issues/issues/1259 --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -196,6 +196,30 @@ export class OpenApiService {
|
||||
nameSingular: 'apiKey',
|
||||
namePlural: 'apiKeys',
|
||||
},
|
||||
{
|
||||
nameSingular: 'view',
|
||||
namePlural: 'views',
|
||||
},
|
||||
{
|
||||
nameSingular: 'viewField',
|
||||
namePlural: 'viewFields',
|
||||
},
|
||||
{
|
||||
nameSingular: 'viewFilter',
|
||||
namePlural: 'viewFilters',
|
||||
},
|
||||
{
|
||||
nameSingular: 'viewSort',
|
||||
namePlural: 'viewSorts',
|
||||
},
|
||||
{
|
||||
nameSingular: 'viewGroup',
|
||||
namePlural: 'viewGroups',
|
||||
},
|
||||
{
|
||||
nameSingular: 'viewFilterGroup',
|
||||
namePlural: 'viewFilterGroups',
|
||||
},
|
||||
];
|
||||
|
||||
schema.paths = metadata.reduce((path, item) => {
|
||||
|
||||
Reference in New Issue
Block a user