Prisma1: Invalid API schema generated for a specific datamodel

Created on 12 Jun 2018  Â·  6Comments  Â·  Source: prisma/prisma1

Bug Report

Current behavior
When a service is deployed with a specific datamodel the generated API schema is invalid.

Related issue: https://github.com/graphql-cli/graphql-cli/issues/319

Reproduction

https://github.com/divyenduz/graphql-cli-319

Expected behavior?
There is an empty type generated which should not be generated.

bu2-confirmed areengine

Most helpful comment

I have implemented a fix for this in 1.15 which will become available in Beta on August 14th and Stable on August 28th.

All 6 comments

I think this is related #2574

Try to reload Prisma server after deployment — it should work then

What do you mean with reloading the Prisma server?

@marktani restart it. in case of kubernetes - recreate the pod

I get this issue sometimes when I make a type without a scalar field.

Adding one usually works as a workaround.

Still a bug though...

To be specific in documentation of this issue. For the following datamodel.graphql

The generated Prisma API is invalid because of this empty type.

I have implemented a fix for this in 1.15 which will become available in Beta on August 14th and Stable on August 28th.

Was this page helpful?
0 / 5 - 0 ratings