Class GraphQLSchemaManager

Hierarchy

  • GraphQLSchemaManager

Constructors

Properties

_graphQlSchemaStringPromise?: Promise<string>
_resolveManagers: ResolverManager[]
graphQlSchemaHooks: GraphQlSchemaHooks
schemaManager: SchemaManager

Methods

  • Generates Create mutation schema string for a given entity type.

    Parameters

    • item: string

      Entity type name.

    Returns string

  • Generates Delete mutation schema string for a given entity type.

    Parameters

    • item: string

      Entity type name.

    Returns string

  • This method is the internal class method called by getGraphQLQueriesForTraits() and getGraphQLMutationsForTraits() it is used to process the traits for both the Vertex's and the Edges/Relationships

    Parameters

    Returns string

  • Generates Update mutation schema string for a given entity type.

    Parameters

    • item: string

      Entity type name.

    Returns string

  • Returns a list of relationships exposed as GraphQL mutation arguments.

    Parameters

    • entityTypeName: string

      Entity type name.

    • actions: RelationshipAction[]

      The relationship actions to be executed.

    • optionalArguments: boolean = false

      Make all arguments optional. Useful for Update mutations.

    Returns string

  • Private

    Builds GraphQL resolvers for fields defined in schema.

    Returns

    An object containing GraphQL fields resolvers.

    Returns Promise<IResolvers<any, any, Record<string, any>, any>>

  • This method is used to include all the dynamically defined Connections and their corresponding edges.

    Returns string

  • This method is used to generate the required Mutations Schema data for Traits

    Parameters

    • item: string

      This is the name of the Vertexs whos outgoing relationships the trait schema is generated for.

    • mutationsData: string

    Returns string

  • This method is used to generate the GraphQL Mutations schema string required for the defined entity.

    Parameters

    • item: string

      Entity type name.

    Returns string

  • This method is used to generate the Queries required for the entity for the GraphQL definition.

    Returns

    GraphQL fragment

    Parameters

    • item: string

      Vertex name

    Returns string

  • This method is used to generate the GraphQL schema for an entity.

    Returns

    GraphQL fragment

    Parameters

    • item: string

    Returns string

  • Traits can have GraphQL type which they can define as part of generating the GraphQL schema a check is made against the active traits which have been defined. Each trait will be processed only once.

    Returns

    Additional types defined by traits.

    Returns Promise<string>

  • This method is used to generate the required Vertex Schema data for Traits

    Parameters

    • item: string

      This is the name of the Vertex that the trait schema is generated for

    Returns string

Generated using TypeDoc