Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Qiksar/crudio
Browse files Browse the repository at this point in the history
  • Loading branch information
qiksar committed Nov 23, 2022
2 parents 789ae48 + ebe2dd8 commit 421f01f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ npm install -g npx

Build a completely functional demo in just a few minutes with one command.

The command below creates a complete demonstration environment which includes, Postgres and Hasura GraphQL running in docker containers, with a fully populated database:
The command below creates a complete demonstration environment which includes, Postgres and Hasura GraphQL running in docker containers, with a fully populated Postgres database:

```
wget -O - https://raw.githubusercontent.com/qiksar/crudio/main/tools/init.sh | bash
Expand All @@ -62,6 +62,8 @@ This command:
- The initialisation script uses a docker-compose file to build Postgres and Hasura docker containers
- Crudio then populates the database with awesome test data like organisations, departments, roles and users, IoT devices and their related data logs

**note - a MongoDB container is also built, but you would have to populate this by using the Crudio CLI with `-t m`, meaning target MongoDB)**

Once the script has executed, browse to [Hasura Console](http://localhost:6789) and select the `DATA` tab and click the buttons to track all tables and track all relationships.

There are example GraphQL queries below, and more on the [WIKI](https://github.com/Qiksar/crudio/wiki/05.-Example-GraphQL-Queries)
Expand Down Expand Up @@ -90,22 +92,22 @@ But if you run the **unit tests**, the schema will be `crudio_test`, so you will
crudio_Blogs {
article
BlogTags {
tagByTag {
Tag {
name
}
}
}
}
```

## Get a list of users with their organisations and prove their email addresses match the orgniation they work for
## Get a list of employees with their organisations and prove their email addresses match the organisation that they work for
```graphql
{
crudio_Users{
crudio_Employees{
firstname
lastname
email
organisationByOrganisation {
Organisation {
name
}
}
Expand Down

0 comments on commit 421f01f

Please sign in to comment.