Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Add duplicate query problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jgierer12 authored Feb 19, 2019
1 parent 314fa50 commit 309f6f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions text/0000-graphql-api-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ This function should be exported as a named export by the `gatsby` package.
- The same limitations of the development GraphQL schema also apply to this,
namely that it doesn't support fragments provided by plugins yet (popular
example: `gatsby-image`'s numerous fragments).
- Queries that are the same at build time and run time must be duplicated
([example](https://github.com/jgierer12/gatsby-api-proposal-demo/blob/master/src/pages/index.js#L10-L66)).
This could for example be solved by being able to pass strings to Gatsby's
`graphql` function, or importing `.graphql` files.

# Alternatives

Expand Down

0 comments on commit 309f6f9

Please sign in to comment.