Skip to content

HarperDB/apollo-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HarperDB-Apollo Application Template

This is a template for building and using Apollo applications in HarperDB. You can download this repository as a starting point for building Apollo applications with HarperDB. To get started, make sure you have installed HarperDB, which can be quickly done with npm install -g harperdb. You can run your application from the directory where you downloaded the contents of this repository with:

harperdb dev /path/to/apollo-example

(or if you enter that directory, you can run the current directory as harperdb dev .).

The schema.graphql is the schema definition. This is the main starting point for defining your database schema and Apollo endpoints, specifying which tables you want and what attributes/fields they should have, and which queries can be made with Apollo.

The resolvers.js provides a template for defining Apollo resolvers.

NOTE: If you want to connect to the Apollo sandbox you will need to turn on CORS in HarperDB like the following:

http:
  cors: true
  corsAccessList:
    - "*"

About

An example application that uses the Apollo integration component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •