Skip to main content

GraphQLModelFields

@webda/graphql


Interface: GraphQLModelFields

Defined in: graphql/src/graphql.service.ts:109

The fields the schema gives to the CRUD of a model, as generateSchema() named them

Properties​

create?​

optional create?: string

Defined in: graphql/src/graphql.service.ts:119

Mutation creating an object, absent when the model defines its own create action


delete?​

optional delete?: string

Defined in: graphql/src/graphql.service.ts:123

Mutation deleting an object, absent when the model defines its own delete action


get​

get: string

Defined in: graphql/src/graphql.service.ts:113

Query field reading one object


key​

key: string

Defined in: graphql/src/graphql.service.ts:115

Argument of get holding the primary key


query​

query: string

Defined in: graphql/src/graphql.service.ts:117

Query field querying the objects


type​

type: string

Defined in: graphql/src/graphql.service.ts:111

GraphQL type of the model (its input type is <type>Input)


update?​

optional update?: string

Defined in: graphql/src/graphql.service.ts:121

Mutation updating an object (merge), absent when the model defines its own update action