Skip to content

Commit

Permalink
Merge pull request #4674 from edulecca/fix/introspectionQuery-raGraphQl
Browse files Browse the repository at this point in the history
fix instrospection grapgql query
  • Loading branch information
jdemangeon authored Apr 14, 2020
2 parents 37b09d3 + b0a1e79 commit d26841c
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 d26841c

Please sign in to comment.