Skip to content

Commit 3455b76

Browse files
committed
experimental readme change
1 parent d302f9d commit 3455b76

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

README.md

+71
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,77 @@ Strongly Typed GraphQL from the team at [GraphQL Editor](https://graphqleditor.c
1010

1111
GraphQL Zeus is the absolute best way to interact with your GraphQL endpoints in a type-safe way. Zeus uses your schema to generate Typescript types and strongly typed clients to unlock the power, efficiency, productivity and safety of Typescript on your GraphQL requests.
1212

13+
GraphQL Syntax ( not type-safe 😢 )
14+
15+
```gql
16+
query ($id: String!) {
17+
usersQuery {
18+
admin {
19+
sequenceById(_id: $id) {
20+
_id
21+
name
22+
analytics {
23+
sentMessages
24+
sentInvitations
25+
receivedReplies
26+
acceptedInvitations
27+
}
28+
replies {
29+
message
30+
createdAt
31+
_id
32+
}
33+
messages {
34+
_id
35+
content
36+
renderedContent
37+
sendAfterDays
38+
}
39+
tracks {
40+
_id
41+
createdAt
42+
inviteSent
43+
inviteAccepted
44+
contact {
45+
linkedInId
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}
52+
```
53+
54+
Zeus syntax ( type-safe 😋 )
55+
```tsx
56+
{
57+
usersQuery: {
58+
admin: {
59+
sequenceById: [
60+
{ id: $("id", "String!") },
61+
{
62+
_id: true,
63+
name: true,
64+
analytics: { ...fields("SequenceAnalytics") },
65+
replies: {
66+
...fields("SequenceTrackReply"),
67+
},
68+
messages: {
69+
...fields("Message"),
70+
},
71+
tracks: {
72+
...fields("SequenceTrack"),
73+
contact: {
74+
linkedInId: true,
75+
},
76+
},
77+
},
78+
],
79+
},
80+
},
81+
}
82+
```
83+
1384
## Features
1485
⚡️ Validates queries and selectors
1586
⚡️ Types mapped from your schema <br/>

0 commit comments

Comments
 (0)