sveltekit-graphql
Advanced tools
Changelog
0.4.3
Changelog
0.4.2
Changelog
0.4.1
f75f0c1: Order sveltekitGql vite plugin above sveltekit
Previously we were adding our vite plugin after sveltekit. This was incorrect because the houdini vite plugin (which is added internally) needs to come after the sveltekit plugin.
Changelog
0.4.0
548f57b: Add option to pass context to the Yoga GraphQL server
This just passes the context straight to the createYoga function. It can either be an object or a function that takes the request context and returns an object.
const server = createServer(schema, {
context: { hello: 'world' },
});
dd3eac9: Write combined server schema into .sveltekit-graphql/schema.graphql and point houdini to this file.
The include path for houdini has also been updated to prevent inclusion of any .graphql files by default.
dd3eac9: Allow configuring additional server schema files.
By default the schema glob for the graphql server is defined as src/graphql/**/*.graphql
. This can
now be expanded by adding the additionalServerSchema
property to your houdini.config.js
file.
E.g.
import { createHoudiniConfig } from 'sveltekit-graphql/config';
const config = createHoudiniConfig({
additionalServerSchema: ['./node_modules/my-cool-graphql-module/schema.graphql'],
});
export default config;
dd3eac9: Add out of the box support for the @oneOf
directive