Skip to content

Commit

Permalink
Fix an argument typo in @rest example.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Mar 14, 2018
1 parent 99ad072 commit 0128a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ const hasOwn = Object.prototype.hasOwnProperty;
//
// const typeDefs = `
// type Query {
// people: [Person] @rest("/api/v1/people")
// people: [Person] @rest(url: "/api/v1/people")
// }`;
//
// const schema = makeExecutableSchema({ typeDefs });
//
// SchemaDirectiveVisitor.visitSchema(schema, {
// rest: class extends SchemaDirectiveVisitor {
// visitFieldDefinition(field: GraphQLField<any, any>) {
// const [url] = this.args;
// const { url } = this.args;
// field.resolve = () => fetch(url);
// }
// }
Expand Down

0 comments on commit 0128a10

Please sign in to comment.