This is not ready for production use yet
Oriql - Simple and Effective GraphQL Schema Management
Oriql is a GraphQL schema compiler. It allows you to write your schema from a single source of truth (as a Javascript object) and have both the server schema and client queries automatically generated.
Basic Example
// Schema File (ie. /schema/index.js); const schema = name: 'HelloComponent' // Unique name given to the schema name instances: 'Hello' // Optional: alias names to give to this schema. All must be unique schema: compiler: string framework: string ; // On the server (ie. server.js)const ApolloServer = ;const compile: compileSchema = ; // Could also use a static file built at build time const schema = ; async { const server: serverSchema = await ; const server = schema: serverSchema ; server;}; // On the client;;;; // static file built by Oriql const loading error data = ; if loading return 'Loading...'; if error return `Error `; return <div>datacompiler is being used in conjunction with dataframework!</div> ;
Current Features
- Compile server schema
- Compile client queries
- Compile client mutations
- Typescript types generated from schema
- Flow types generated from schema
Upcoming Features
- Server framework compatible with (at the very least) Apollo
- Static schema compilation
- Generated resolvers for each field in schema
- Client framework compatible with (at the very least) React and Apollo
- Automatic query/mutation execution
- Data reconciling based on query
- Schema generation from protobuf
Examples
Further examples can be found in our examples repository.