Skip to content
This repository has been archived by the owner. It is now read-only.
weaviate-graphql-prototype
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo_resolver
demo_schemas
docs
network
schema
schemas_large
schemas_small
schemas_test
test
.gitignore
.graphqlconfig
README.md
descriptions.json
package-lock.json
package.json
server_small.js

README.md

GraphQL API

Usage

To run the prototype:

  • Install npm install -g nodemon
  • Install packages: npm install
  • Run: nodemon server_small.js The GraphQL API prototype will be running at http://localhost:8081/. To expore, you can use GraphiQL (an in-browser IDE for exploring GraphQL APIs), which can be found at http://localhost:8081/graphql.

To run the CLI tool:

  • Install npm install -g graphql-cli
  • cd into a new dir
  • graphql init (schema for this prototype = http://localhost:8081/graphql)

To get the full graphql schema by the CLI tool:

  • Run: graphql get-schema The result will be in ./schema.graphql

To get the full schema definitions in markdown by a graphql introspection query:

  • Install npm install -g graphql-markdown
  • Run graphql-markdown ./path/to/schema.graphql > schema.md

Documentation

The full documentation can be found here

You can’t perform that action at this time.