UNPKG

opensaas

Version:

Create fully bundled SaaS application (Backend & Frontend) using an interactive CLI

22 lines (17 loc) 349 B
import gql from 'graphql-tag'; const typeDefs = gql` type Feature @key(fields: "id") { id: ID! name: String enabled: Boolean tenantId: String } type Query { feature(id: ID!): Feature features: [Feature] } type Mutation { addFeature(name: String!, enabled: Boolean!): Feature } `; export default typeDefs;