Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco authored Jan 31, 2023
1 parent f00cef3 commit 2864a2e
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,53 @@

## Build APIs in 5 minutes not weeks

GraphJin gives you an instant secure and fast GraphQL API without code. Just use a GraphQL query to define your API and GraphJin automagically converts it into a full featured API. Build your backend APIs **100X** faster. Works with **NodeJS** and **GO**. Supports several databases, **Postgres**, **MySQL**, **Yugabyte**, **AWS Aurora/RDS** and **Google Cloud SQL**
Just use a simple GraphQL query to define your API and GraphJin automagically converts it into SQL and fetches the data you need. Build your backend APIs **100X** faster. Works with **NodeJS** and **GO**. Supports several databases, **Postgres**, **MySQL**, **Yugabyte**, **AWS Aurora/RDS** and **Google Cloud SQL**

The following GraphQL query fetches a list of products, their owners, and other category information, including a cursor for retrieving more products.
GraphJin would do auto-discovery of your database schema and relationships and generate the most efficient single SQL query to fetch all this data including a cursor to fetch the next 20 times. You don't have to do a single thing besides write the GraphQL query.

```graphql
query getProducts {
products(
# returns only 20 items
limit: 20

# orders the response items by highest price
order_by: { price: desc }

# only items with a price >= 20 and < 50 are returned
where: { price: { and: { greater_or_equals: 20, lt: 50 } } }
) {
id
name
price

# also fetch the owner of the product
owner {
full_name
picture: avatar
email

# and the categories the owner has products under
category_counts(limit: 3) {
count
category {
name
}
}
}

# and the categories of the product itself
category(limit: 3) {
id
name
}
}
# also return a cursor that we can use to fetch the next
# batch of products
products_cursor
}
```

## Secure out of the box

Expand Down

1 comment on commit 2864a2e

@vercel
Copy link

@vercel vercel bot commented on 2864a2e Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.