Skip to content

Commit

Permalink
Improve overview example in README (#74)
Browse files Browse the repository at this point in the history
- export function as default
- makeServer function take one argument
  • Loading branch information
rgaiacs authored Jan 9, 2024
1 parent 17ca8b3 commit 0c80be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { createServer } from "miragejs"
import { createGraphQLHandler } from "@miragejs/graphql"
import graphQLSchema from "app/gql/schema.gql"

export function makeServer() {
export default function makeServer(config) {
return createServer({
routes() {
const graphQLHandler = createGraphQLHandler(graphQLSchema, this.schema)
Expand Down

0 comments on commit 0c80be1

Please sign in to comment.