Skip to content

Support Directives #8

@numso

Description

@numso

We've already got an idea of what the syntax of these should be. And Goblet.Parser is already parsing them out. We just need to spend the time to understand how directives are defined in the schema so we can generate queries correctly as well as validate the correctness of written queries.

query "Test" do
  @include if: ^something
  someField
  @special info: "this is a custom arg"
  someOtherField
end

should be validated and then output

query Test($something: Boolean) {
  someField @include(if: $something)
  someOtherField @special(info: "this is a custom arg")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions