Skip to content

Commit dc38cd9

Browse files
authored
docs: Fix usage of graphiql in umd (#1926)
1 parent 5b3e8c3 commit dc38cd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/graphiql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ The most minimal way to set up GraphiQL is a single index.html file:
142142
></script>
143143

144144
<script>
145-
const fetcher = GraphiQL.createFetcher('https://my/graphql');
145+
const fetcher = GraphiQL.createFetcher({ url: 'https://my/graphql' });
146146
147147
ReactDOM.render(
148148
React.createElement(GraphiQL, { fetcher: fetcher }),

0 commit comments

Comments
 (0)