surrealdb / surrealdb

A scalable, distributed, collaborative, document-graph database, for the realtime web
https://surrealdb.com
Other
27.37k stars 889 forks source link

Bug: GraphQL Schema generation EOF #4638

Closed itsezc closed 1 month ago

itsezc commented 2 months ago

Describe the bug

The following bug is thrown when generating a schema from a very minimal database:

InvalidRequest(Error("EOF while parsing a value", line: 1, column: 0))

Steps to reproduce

Using the following minimal example:

DEFINE TABLE store SCHEMAFULL;

DEFINE FIELD name ON store TYPE string;

Expected behaviour

Generate a standard and working GraphQL schema

SurrealDB version

v2 Beta 1

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

itsezc commented 1 month ago

This issue only happens while connecting via HTTP

itsezc commented 1 month ago

Fixed in v2 beta 3