Skip to content

Override used schema in the GraphQL injection explicitly using a comment #485

@howyp

Description

@howyp

Plugin is great, thanks!

I'm using the syntax-checking for code snippets in markdown files, such as:

```graphql
query {
  products {
    id
    description
    name
    notes { name value }
  }
}
```

It works really well, but I have multiple schemas that I'd like to be able to document in one file, and I wondered if there was a way to specify which schema to use in a given code block, rather like you can with a comment in a scratch file? ie. in a scratch file it seems you can do it with a special comment:

# .graphqlconfig=/Users/example!Customer

query {
  products {
    id
    description
    name
    notes { name value }
  }
}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions