ardatan / ardatan/graphql-import

GraphQL root level directive syntax

Open
#89 7 comments 6 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
864
Forks
53
PR merge metrics
No merged PRs in 30d

Description

In the last [GraphQL working group meeting](https://github.com/graphql/graphql-wg/blob/master/notes/2018-02-01.md#present-graphql-import) we discussed to enable GraphQL directives on a document/root level. This would allow for the following syntax which avoids the common "why is it commented out" confusion around graphql-import:

```graphql
@import(defs: [Post, Comment] from: "./other-types.graphql")
@import(defs: Message from: "./msg.graphql")

type User {
id: ID!
}
```

## Open questions

- [ ] Final syntax: `@import`, `defs:`, `from:`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked GraphQL working-group meeting note and the proposed examples in this issue. No files, tests, or implementation entry points are identified; the work is done when the root-level directive syntax and the `@import` argument names have been resolved and the project behavior reflects that decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.