Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port official relay tutorial #420

Merged
merged 31 commits into from
Nov 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fb7ce74
copy raw state of tutorial
zth Jan 7, 2023
682bb43
add disclaimer/credits about this being a fork of the official tutorial
zth Jan 7, 2023
81673d1
more work on porting tutorial contents
zth Jan 15, 2023
931d571
Convert tutorial up to and including Types, Interfaces, and Polymorphism
mbirkegaard Feb 6, 2023
f8bd148
Convert Refetchable Fragments
mbirkegaard Feb 6, 2023
07a0296
Convert connections and pagination up to useTransition
mbirkegaard Feb 6, 2023
3ffff94
Convert rest of connections-pagination chapter
mbirkegaard Apr 13, 2023
b40cd54
Convert mutations and updates up until adding comments
mbirkegaard Apr 13, 2023
beec5b7
Finish converting mutations-updates
mbirkegaard Apr 14, 2023
562655c
Add rudimentary usage og onCompleted/onError
mbirkegaard Apr 14, 2023
7be098f
Add optimistic UI for posting a comment
mbirkegaard Apr 14, 2023
ee69d62
Convert missed javascript
mbirkegaard Apr 19, 2023
15d2d4b
Update intro to reflect yarn and rescript usage
mbirkegaard Apr 19, 2023
3fa0c5e
Add numbers to tutorial files
mbirkegaard Jul 4, 2023
7e24ff2
Final pass on 1 and 2
mbirkegaard Jul 12, 2023
e585896
Fix numbering
mbirkegaard Jul 12, 2023
0ceca34
Final pass on query basics
mbirkegaard Jul 12, 2023
993ff0f
Add note about names
mbirkegaard Jul 13, 2023
deffea4
Use graphql formatting
mbirkegaard Jul 13, 2023
4138b0e
Final pass on fragments
mbirkegaard Jul 13, 2023
0b2af6d
Final pass on part 5 and 6
mbirkegaard Jul 17, 2023
1d1de7e
Final pass on interfaces-polymorphism
mbirkegaard Aug 7, 2023
2c404e8
Final pass on refetchable fragments
mbirkegaard Aug 11, 2023
25b8f54
Final pass on 9, up to useTransition
mbirkegaard Aug 11, 2023
1fc499e
Finish final pass on 9
mbirkegaard Sep 7, 2023
c0414f1
Use getConnectionNodes in first connections example
mbirkegaard Oct 8, 2023
190f16a
Finish section 10
mbirkegaard Oct 8, 2023
3a577e4
Correct reference to ReScript using nominal types
mbirkegaard Nov 9, 2023
903ac51
Finish type deep-dive
mbirkegaard Nov 10, 2023
2203c6c
Set up magic comments
mbirkegaard Nov 10, 2023
8485884
Fix a bit of high-lighting
mbirkegaard Nov 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Convert missed javascript
Co-authored-by: Gabriel Nordeborn <[email protected]>
  • Loading branch information
mbirkegaard and zth authored Apr 19, 2023
commit ee69d62f56721eac352a3d4ccfb692758ba08251
4 changes: 2 additions & 2 deletions rescript-relay-documentation/docs/tutorial/arrays-lists.md
Original file line number Diff line number Diff line change
@@ -55,14 +55,14 @@ To show multiple stories on our newsfeed, we just need to modify `Newsfeed.res`
Open `Newsfeed.res` and find `NewsfeedQuery`. Replace `topStory` with `topStories`.

```rescript
const NewsfeedQuery = graphql`
module NewsfeedQuery = %relay(`
query NewsfeedQuery {
// change-line
topStories {
...StoryFragment
}
}
`;
`)
```

### Step 2 — Map over the list in the component