release-1668156394844
版本发布时间: 2022-11-11 16:46:35
dotansimha/graphql-yoga最新发布版本:release-1723761948464(2024-08-16 06:45:48)
@graphql-yoga/common@3.0.0-next.11
Patch Changes
@graphql-yoga/graphiql@3.0.0-next.3
Patch Changes
-
#2051
7a5f92c1
Thanks @enisdenjo! - Dedent GraphiQL placeholder text
graphql-yoga@3.0.0-next.11
Major Changes
-
#2012
720898db
Thanks @saihaj! - Remove.inject
method to mock testing. Users should replace to usefetch
method for testing. Checkout our docs on testing https://www.the-guild.dev/graphql/yoga-server/v3/features/testing.import { createYoga } from 'graphql-yoga' import { schema } from './schema' const yoga = createYoga({ schema }) - const { response, executionResult } = await yoga.inject({ - document: "query { ping }", - }) + const response = await yoga.fetch('http://localhost:4000/graphql', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ + query: 'query { ping }', + }), + }) + const executionResult = await response.json() console.assert(response.status === 200, 'Response status should be 200') console.assert(executionResult.data.ping === 'pong',`Expected 'pong'`)
Patch Changes
-
#2024
9f991a27
Thanks @enisdenjo! - Ensure all parsing failures inGraphQLScalarType
are caught and handled with 400 status code. -
#2058
ef191eee
Thanks @enisdenjo! - Simplify landing page and fix links