Class GraphQLUpdateHandler

UpdateHandler plugin for GraphQL. Runs the specified mutation with the specified variables, with the credentials of the service user.

Hierarchy

Constructors

Properties

dataSourceWrapper: DataSourceWrapper

Methods

  • Returns id that described in config.

    If definition.vertex is equal to vertex - returns entity id. If definition.vertex is not equal to vertex - executes following gremlin query:

    g.V({entityId}).out().hasLabel(definition.vertex).has({machine_name}, {definition.value})

    Parameters

    Returns Promise<any>

  • This method should return handler's schema.

    Returns {
        additionalProperties: boolean;
        id: string;
        properties: {
            id: {
                properties: {
                    value: {
                        type: string;
                    };
                    vertex: {
                        type: string;
                    };
                };
                type: string;
            };
            mutation: {
                type: string;
            };
            variables: {
                additionalProperties: {
                    type: string[];
                };
            };
        };
        required: string[];
        type: string;
    }

    • additionalProperties: boolean
    • id: string
    • properties: {
          id: {
              properties: {
                  value: {
                      type: string;
                  };
                  vertex: {
                      type: string;
                  };
              };
              type: string;
          };
          mutation: {
              type: string;
          };
          variables: {
              additionalProperties: {
                  type: string[];
              };
          };
      }
      • id: {
            properties: {
                value: {
                    type: string;
                };
                vertex: {
                    type: string;
                };
            };
            type: string;
        }
        • properties: {
              value: {
                  type: string;
              };
              vertex: {
                  type: string;
              };
          }
          • value: {
                type: string;
            }
            • type: string
          • vertex: {
                type: string;
            }
            • type: string
        • type: string
      • mutation: {
            type: string;
        }
        • type: string
      • variables: {
            additionalProperties: {
                type: string[];
            };
        }
        • additionalProperties: {
              type: string[];
          }
          • type: string[]
    • required: string[]
    • type: string

Generated using TypeDoc