We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const restLink = new RestLink({ uri: 'https://swapi.co/api/', }); const client = new ApolloClient({ link: restLink, cache: new InMemoryCache(), });
const Query = gql` query luke($id: String!) { person(id: $id) @rest(type: "Person", path: "people/:id") { name } } `;
Warning: Deprecated: '@rest(path:' contains a ':' colon, this format will be removed in future versions
What could be the problem?
apollo-link-rest@0.4.4 graphql-tag@2.9.2 graphql@0.13.2 graphql-anywhere@4.1.16
The text was updated successfully, but these errors were encountered:
You'll want to update to the new syntax to get rid of that warning:
@rest(type: "Person", path: "people/:id") {
becomes
@rest(type: "Person", path: "people/{args.id}") {
Sorry, something went wrong.
great answer @dbryand!
No branches or pull requests
Warning: Deprecated: '@rest(path:' contains a ':' colon, this format will be removed in future versions
What could be the problem?
The text was updated successfully, but these errors were encountered: