--no-database
schema build fails with various module configuration
#445
Labels
--no-database
schema build fails with various module configuration
#445
The schema builder tries to run a bunch of queries for the
versions
key on versionned DataObjects.Normally, that's fine ... however if you're trying to build your schema with the
NullDatabase
, it's going to crash becauseVersionned::allVersions()
always tries to run a bunch of queries.I'm tempted to call this a bug with Versionned. But I'm not sure if it's indicative of a wider problem with GraphQL v4. There's a big catch statement on the Builder that was being triggered by this issue. That block prints out a warning saying "Your schema configuration requires access to the database", which implies that there might be a legitimate use case for being able to run queries when bulidng a schema.
silverstripe-graphql/src/Dev/Build.php
Lines 98 to 124 in e24dd87
Also, the logger on line 115 throws an error because the
$candidate
array is not in the expected format.Pull requests
The text was updated successfully, but these errors were encountered: