@gqlbase/plugins
v0.1.6
Published
Collection of plugins and presets for gqlbase, providing common transformations and utilities that can be used in GraphQL schema transformation processes.
Downloads
901
Readme
@gqlbase/plugins
Built-in plugins and presets for gqlbase.
This is an internal package. Install the main gqlbase package instead.
What this package provides
Base preset (gqlbase/plugins/base):
ScalarsPlugin— registers built-in scalar typesUtilitiesPlugin— processes visibility and scope directivesModelPlugin— generates CRUD operations from@modeltypesRelationsPlugin— resolves@hasOneand@hasManyrelationsSchemaGeneratorPlugin— outputs the transformed schemaModelTypesGeneratorPlugin— outputs TypeScript type definitions
Relay preset (gqlbase/plugins/relay):
NodeInterfacePlugin— adds the RelayNodeinterfaceConnectionPlugin— generates connection and edge types
License
MIT
declare module "@gqlbase/middy-appsync" {
interface Definition {
User: {
id: { source: User; args: Record<string, never>; result: string };
name: { source: User; args: Record<string, never>; result: string };
email: { source: User; args: Record<string, never>; result: string };
};
Query: {
user: { source: null; args: Record<string, never>; result: User | null };
};
}
}