zvictor / brainyduck

🐥 A micro "no-backend" framework 🤯 Quickly build powerful BaaS using only your graphql schemas
https://duck.brainy.sh
GNU Affero General Public License v3.0
69 stars 3 forks source link

Schemas not fully loaded [Error: no documents could be loaded] #3

Closed zvictor closed 4 years ago

zvictor commented 4 years ago

Because of a bug in graphql-import, schemas are not being properly loaded.

push-schema Looking for files matching 'User.gql'
push-schema     ❯ found /faugra/examples/basic/User.gql +1ms
define-functions Looking for files matching 'sayHello.fql' +0ms
Error: no documents could be loaded
    at loadSchema (/faugra/commands/push-schema.js:39:11)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async main (/faugra/commands/push-schema.js:61:29)
    at async main (/faugra/commands/generate-types.js:31:3)
    at async run (/faugra/node_modules/p-queue/dist/index.js:255:29)