Skip to content

uploading schema #4

Description

@wweevv-johndpope

it seems they've introduced the capability to upload schema - though I couldn't get this working locally using offical route....
(I'm using your fauna script / but the site isn't finding it so doing some troubleshooting)
fauna upload-graphql-schema schema.gql --endpoint=localhost

even it all seems setup properly
it just bypasses it

(base) ➜  fauna git:(main) ✗ fauna upload-graphql-schema schema.gql --endpoint=localhost
UPLOADING SCHEMA (mode=merge): schema.gql
    FetchError: request to http://graphql.fauna.com:443/import?mode=merge failed, reason: socket hang up
    Code: ECONNRESET

 fauna shell --endpoint=localhost
(base) ➜  cat $HOME/.fauna-shell
default=localhost


[localhost]
domain=localhost
port=8443
scheme=http
secret=secret

eg.

fauna shell  --endpoint=localhost
Connected to http://localhost:8443
Type Ctrl+D or .exit to exit the shell

this works. seems like a bug upstream -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions