Skip to content

Commit

Permalink
fix instrospection grapgql query
Browse files Browse the repository at this point in the history
  • Loading branch information
edulecca committed Apr 10, 2020
1 parent 6eddff9 commit b0a1e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-data-graphql/src/introspection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { introspectionQuery } from 'graphql';
import { getIntrospectionQuery } from 'graphql';
import gql from 'graphql-tag';
import { GET_LIST, GET_ONE } from 'ra-core';

Expand Down Expand Up @@ -35,7 +35,7 @@ export default async (client, options) => {
.query({
fetchPolicy: 'network-only',
query: gql`
${introspectionQuery}
${getIntrospectionQuery()}
`,
})
.then(({ data: { __schema } }) => __schema);
Expand Down

0 comments on commit b0a1e79

Please sign in to comment.