soniq icon indicating copy to clipboard operation
soniq copied to clipboard

Feature Request: Make schema.gql optional

Open davidsparkles opened this issue 5 years ago • 0 comments

Package

  • [ ] auth
  • [ ] boot-loader / graceful-shutdown
  • [ ] config
  • [ ] db
  • [ ] events
  • [ ] file-storage
  • [ ] graphql
  • [ ] notifications
  • [ ] queue
  • [x] schema-builder
  • [ ] server

Description / Use Case for a Feature

An empty schema.gql should not be required to make the framework start. The framework currently fails because type Mutation is inserted into the complete SDL but does not hold any mutation.

extend type Mutation {

  """
  Some Mutation
  """
  someMutation: String! @custom(resolver: "someMutation")
}

extend type Query {

  """
  Some Query
  """
  someQuery: String! @custom(resolver: "someQuery")

}

davidsparkles avatar Jul 23 '19 08:07 davidsparkles