Skip to content

Commit

Permalink
docs: update json and yaml to config type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Aug 29, 2024
1 parent 9813aa1 commit 102dbae
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 96 deletions.
151 changes: 99 additions & 52 deletions docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,72 +91,87 @@ types:
Post:
fields:
body:
type: String
required: true
type:
name: String
required: true
cache: null
id:
type: Int
required: true
type:
name: Int
required: true
cache: null
title:
type: String
required: true
type:
name: String
required: true
cache: null
user:
type: User
type:
name: User
cache: null
userId:
type: Int
required: true
type:
name: Int
required: true
cache: null
cache: null
Query:
fields:
posts:
type: Post
list: true
type:
list:
name: Post
http:
path: /posts
cache: null
user:
type: User
type:
name: User
args:
id:
type: Int
required: true
type:
name: Int
required: true
http:
path: /users/{{.args.id}}
cache: null
users:
type: User
list: true
type:
list:
name: User
http:
path: /users
cache: null
cache: null
User:
fields:
email:
type: String
required: true
type:
name: String
required: true
cache: null
id:
type: Int
required: true
type:
name: Int
required: true
cache: null
name:
type: String
required: true
type:
name: String
required: true
cache: null
phone:
type: String
type:
name: String
cache: null
username:
type: String
required: true
type:
name: String
required: true
cache: null
website:
type: String
type:
name: String
cache: null
cache: null
```
Expand Down Expand Up @@ -185,27 +200,37 @@ types:
"Post": {
"fields": {
"body": {
"type": "String",
"required": true,
"type": {
"name": "String",
"required": true
},
"cache": null
},
"id": {
"type": "Int",
"required": true,
"type": {
"name": "Int",
"required": true
},
"cache": null
},
"title": {
"type": "String",
"required": true,
"type": {
"name": "String",
"required": true
},
"cache": null
},
"user": {
"type": "User",
"type": {
"name": "User"
},
"cache": null
},
"userId": {
"type": "Int",
"required": true,
"type": {
"name": "Int",
"required": true
},
"cache": null
}
},
Expand All @@ -214,19 +239,26 @@ types:
"Query": {
"fields": {
"posts": {
"type": "Post",
"list": true,
"type": {
"list": {
"name": "Post"
}
},
"http": {
"path": "/posts"
},
"cache": null
},
"user": {
"type": "User",
"type": {
"name": "User"
},
"args": {
"id": {
"type": "Int",
"required": true
"type": {
"name": "Int",
"required": true
}
}
},
"http": {
Expand All @@ -235,8 +267,11 @@ types:
"cache": null
},
"users": {
"type": "User",
"list": true,
"type": {
"list": {
"name": "User"
}
},
"http": {
"path": "/users"
},
Expand All @@ -248,31 +283,43 @@ types:
"User": {
"fields": {
"email": {
"type": "String",
"required": true,
"type": {
"name": "String",
"required": true
},
"cache": null
},
"id": {
"type": "Int",
"required": true,
"type": {
"name": "Int",
"required": true
},
"cache": null
},
"name": {
"type": "String",
"required": true,
"type": {
"name": "String",
"required": true
},
"cache": null
},
"phone": {
"type": "String",
"type": {
"name": "String"
},
"cache": null
},
"username": {
"type": "String",
"required": true,
"type": {
"name": "String",
"required": true
},
"cache": null
},
"website": {
"type": "String",
"type": {
"name": "String"
},
"cache": null
}
},
Expand Down
Loading

0 comments on commit 102dbae

Please sign in to comment.