Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 11:34
· 20 commits to main since this release
9eb6f0d

Minor Changes

  • 4108ab3: Support for custom scalars in server code generation.

    Custom scalars defined in your houdini.config.js will now be picked up by the server code
    generation. By default they will be given the type string, but this can be changed by setting the
    serverType on the scalar config. Note that the type field only affects the client side type, as
    the server does not use the custom marshal/unmarshal functions defined here and so the types will
    likely differ.

    For example, here is an example with a custom Void type

    import { createHoudiniConfig } from 'sveltekit-graphql/config';
    
    const config = createHoudiniConfig({
    	scalars: {
    		Void: {
    			type: 'void',
    			serverType: 'void',
    			marshal: () => null,
    			unmarshal: () => {},
    		},
    	},
    });
    
    export default config;