Last active
May 4, 2020 04:54
-
-
Save iliran11/df64e2d2fb0bb6c1451addb4231eca6b to your computer and use it in GitHub Desktop.
Internationalize your Graphql - server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const typeDefs = gql` | |
directive @intl on FIELD_DEFINITION | |
type Query { | |
# Makring "greeting" field for internationalization. | |
greeting: String @intl | |
id: Int | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment