Class ExpressionConstraint

    • Constructor Detail

      • ExpressionConstraint

        public ExpressionConstraint()
    • Method Detail

      • getDocumentation

        public Documentation getDocumentation()
        Returns:
        documentation meta data about this constraint
      • appliesToType

        public boolean appliesToType​(graphql.schema.GraphQLInputType inputType)
        Description copied from class: AbstractDirectiveConstraint
        A derived class will be called to indicate whether this input type applies to the constraint
        Specified by:
        appliesToType in class AbstractDirectiveConstraint
        Parameters:
        inputType - the input type
        Returns:
        true if the constraint can handle that type
      • appliesTo

        public boolean appliesTo​(graphql.schema.GraphQLFieldDefinition fieldDefinition,
                                 graphql.schema.GraphQLFieldsContainer fieldsContainer)
        Description copied from interface: ValidationRule
        This is called to work out if this rule applies to a specified field
        Specified by:
        appliesTo in interface ValidationRule
        Overrides:
        appliesTo in class AbstractDirectiveConstraint
        Parameters:
        fieldDefinition - the field to check
        fieldsContainer - the field container
        Returns:
        true if this rule applies to the field