Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6f40df
commit 8e0db21
Showing
33 changed files
with
387 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# learn.hasura.io | ||
|
||
Real world GraphQL tutorials for frontend developers with deadlines! | ||
With these tutorials, you will move from the basics of GraphQL to building a real-time application in 2 hours | ||
|
||
There are three different series: | ||
|
||
#### Frontend | ||
|
||
- [React](https://learn.hasura.io/graphql/react) | ||
- [Vue](https://learn.hasura.io/graphql/vue) | ||
- Angular (coming soon) | ||
- Elm (coming soon) | ||
- ReasonML (coming soon) | ||
|
||
#### Mobile | ||
|
||
- [React Native](https://learn.hasura.io/graphql/react-native) | ||
- [iOS](https://learn.hasura.io/graphql/ios) | ||
- Android (coming soon) | ||
- Flutter (coming soon) | ||
|
||
#### Backend | ||
|
||
- [Introduction to Hasura](https://learn.hasura.io/graphql/hasura) | ||
- Postgres Basics (coming soon) | ||
|
||
## What you will learn | ||
|
||
### Frontend | ||
- GraphQL vs REST | ||
- GraphQL Queries, Mutations, Subscriptions | ||
- Setting up a GraphQL Client with Apollo | ||
- Integrating GraphQL Queries in the app | ||
- Integrating GraphQL Mutations with Query Variables | ||
- Integrating Mutations to update, delete and bulk delete | ||
- Managing Local Cache after a GraphQL Mutation | ||
- Optismistic UI updates for responsive user experience | ||
- Using Subscriptions | ||
- Realtime feed with notifications | ||
|
||
### Backend | ||
|
||
- Hasura Basics | ||
- Postgres Data Modelling | ||
- Authorization | ||
- Authentication | ||
- Custom business logic | ||
- Remote Schemas, Event Triggers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
community/learn/graphql-tutorials/backend-services/auth0/auth0_rule_insert_user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
function (user, context, callback) { | ||
const userId = user.user_id; | ||
const nickname = user.nickname; | ||
request.post({ | ||
headers: {'content-type' : 'application/json', 'x-hasura-admin-secret': ''}, | ||
url: 'https://learn.hasura.io/graphql', | ||
body: `{\"query\":\"mutation($userId: String!, $nickname: String) {\\n insert_users(\\n objects: [{ auth0_id: $userId, name: $nickname }]\\n on_conflict: {\\n constraint: users_pkey\\n update_columns: [last_seen, name]\\n }\\n ) {\\n affected_rows\\n }\\n }\",\"variables\":{\"userId\":\"${userId}\",\"nickname\":\"${nickname}\"}}` | ||
}, function(error, response, body){ | ||
console.log(body); | ||
callback(null, user, context); | ||
}); | ||
const userId = user.user_id; | ||
const nickname = user.nickname; | ||
request.post({ | ||
headers: {'content-type' : 'application/json', 'x-hasura-admin-secret': ''}, | ||
url: 'https://learn.hasura.io/graphql', | ||
body: `{\"query\":\"mutation($userId: String!, $nickname: String) {\\n insert_users(\\n objects: [{ id: $userId, name: $nickname }]\\n on_conflict: {\\n constraint: users_pkey\\n update_columns: [last_seen, name]\\n }\\n ) {\\n affected_rows\\n }\\n }\",\"variables\":{\"userId\":\"${userId}\",\"nickname\":\"${nickname}\"}}` | ||
}, function(error, response, body){ | ||
console.log(body); | ||
callback(null, user, context); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+8.18 KB
(1200%)
community/learn/graphql-tutorials/backend-services/homepage/src/favicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.