Skip to content

Commit

Permalink
experimental readme change
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed Jan 2, 2025
1 parent d302f9d commit 3455b76
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,77 @@ Strongly Typed GraphQL from the team at [GraphQL Editor](https://graphqleditor.c

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.

GraphQL Syntax ( not type-safe 😢 )

```gql
query ($id: String!) {
usersQuery {
admin {
sequenceById(_id: $id) {
_id
name
analytics {
sentMessages
sentInvitations
receivedReplies
acceptedInvitations
}
replies {
message
createdAt
_id
}
messages {
_id
content
renderedContent
sendAfterDays
}
tracks {
_id
createdAt
inviteSent
inviteAccepted
contact {
linkedInId
}
}
}
}
}
}
```

Zeus syntax ( type-safe 😋 )
```tsx
{
usersQuery: {
admin: {
sequenceById: [
{ id: $("id", "String!") },
{
_id: true,
name: true,
analytics: { ...fields("SequenceAnalytics") },
replies: {
...fields("SequenceTrackReply"),
},
messages: {
...fields("Message"),
},
tracks: {
...fields("SequenceTrack"),
contact: {
linkedInId: true,
},
},
},
],
},
},
}
```

## Features
⚡️ Validates queries and selectors
⚡️ Types mapped from your schema <br/>
Expand Down

0 comments on commit 3455b76

Please sign in to comment.