Skip to content

Commit

Permalink
fix invalid graphql in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov committed Jun 20, 2024
1 parent 5dcd388 commit 991283c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions packages/objection-graphql-resolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ query posts_with_author {
}
}

query user_with_posts {
user(id: ID!) {
query user_with_posts($id: ID!) {
user(id: $id) {
name
# will use withGraphFetched("posts") if requested
posts {
Expand Down
20 changes: 10 additions & 10 deletions packages/objection-graphql-resolver/docs/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ Example:

```gql
type User {
id: ID!
name: String!
posts: [Post!]!
id: ID!
name: String!
posts: [Post!]!
}

type Post {
id: ID!
text: String!
author: User
id: ID!
text: String!
author: User
}

type Query {
user(id: ID!): User!
posts: [Post!]!
user(id: ID!): User!
posts: [Post!]!
}

query posts_with_author {
Expand All @@ -32,8 +32,8 @@ query posts_with_author {
}
}

query user_with_posts {
user(id: ID!) {
query user_with_posts($id: ID!) {
user(id: $id) {
name
posts {
id
Expand Down
4 changes: 2 additions & 2 deletions packages/orchid-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ query posts_with_author {
}
}

query user_with_posts {
user(id: ID!) {
query user_with_posts($id: ID!) {
user(id: $id) {
name
# will use subquery if requested
posts {
Expand Down
20 changes: 10 additions & 10 deletions packages/orchid-graphql/docs/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ Example:

```gql
type User {
id: ID!
name: String!
posts: [Post!]!
id: ID!
name: String!
posts: [Post!]!
}

type Post {
id: ID!
text: String!
author: User
id: ID!
text: String!
author: User
}

type Query {
user(id: ID!): User!
posts: [Post!]!
user(id: ID!): User!
posts: [Post!]!
}

query posts_with_author {
Expand All @@ -32,8 +32,8 @@ query posts_with_author {
}
}

query user_with_posts {
user(id: ID!) {
query user_with_posts($id: ID!) {
user(id: $id) {
name
posts {
id
Expand Down

0 comments on commit 991283c

Please sign in to comment.