Skip to content

Add ExportSchemaPlugin to docs #2499

Open
@benjie

Description

@benjie

const ExportSchemaPlugin: GraphileConfig.Plugin = {
name: "ExportSchemaPlugin",
version: "0.0.0",
schema: {
hooks: {
finalize(schema) {
exportSchema(schema, `${__dirname}/exported-schema.mjs`, {
mode: "typeDefs",
modules: {
jsonwebtoken,
},
}).catch((e) => {
console.error(e);
});
return schema;
},
},
},
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📝 Docs Improvements

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions