graphql-populate

command module
v0.0.0-...-91b9bef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 5 Imported by: 0

README

graphql-populate

Docker image that populates database using scripts, all loaded via environment vars.

This program can be used to run GQL scripts with GraphQL mutations and queries. It can be used to populate any GraphQL server. To do that you need to configurate some env vars:

  • GRAPHQL_URL: the url for the server to populate.

  • GQL_CHECK_TABLES: a GQL query file, to check if desired tables exists. In case they don't, the program will wait and check again.

  • GQL_POPULATE_FILE: a GQL mutation file, with the mutation to populate the database with GraphQL interface. An upsert mutation is more suitable, since it can be rerun as many times as your docker image is restarted.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL