Skip to content

Support fragments #6

Description

@numso

Defining fragments should be rather simple. We can add a new fragment macro and parse similarly to how we parse queries or mutations:

But we need to figure out some nice valid syntax for including a fragment in your query or in other fragments:

query "FetchUser" do
  user(id: "abc") do
   birthday
   # 👇  How do we define this??
    ...UserData
  end
end

fragment "UserData", on: "User" do
  id
  label
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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