Interface FieldValidator

interface FieldValidator {
    skipConnectionValue: boolean;
    skipNullValue: boolean;
    validate(parts: {
        document: Document;
        field: GraphQLField<any, any, any>;
        fieldConnections: undefined | Connections;
        fieldName: string;
        fieldValue: any;
        graphqlSchema: GraphQLSchema;
        store: DocumentStore<string>;
        type: GraphQLObjectType<any, any>;
    }): void;
}

Properties

skipConnectionValue: boolean

Skip when the field is represented by a connected value on the document

skipNullValue: boolean

Skip when the field is represented by a null or undefined value on the document

Methods

  • Parameters

    • parts: {
          document: Document;
          field: GraphQLField<any, any, any>;
          fieldConnections: undefined | Connections;
          fieldName: string;
          fieldValue: any;
          graphqlSchema: GraphQLSchema;
          store: DocumentStore<string>;
          type: GraphQLObjectType<any, any>;
      }
      • document: Document
      • field: GraphQLField<any, any, any>
      • fieldConnections: undefined | Connections
      • fieldName: string
      • fieldValue: any
      • graphqlSchema: GraphQLSchema
      • store: DocumentStore<string>
      • type: GraphQLObjectType<any, any>

    Returns void