Skip to content

Latest commit

 

History

History
1498 lines (1252 loc) · 27.1 KB

schema.md

File metadata and controls

1498 lines (1252 loc) · 27.1 KB

yarn run v1.22.10 $ /Users/iinoyouhei/go/src/github.com/wheatandcat/memoir-backend/node_modules/.bin/graphql-markdown http://localhost:8080/query

Schema Types

Table of Contents

Query

Field Argument Type Description
user User!

ユーザーを取得する

existAuthUser ExistAuthUser!

認証ユーザーが存在するか判定する

item Item

アイテムを取得する

id ID!
itemsByDate [Item]

アイテムを日付で取得する

date Time!
itemsInDate [Item]

アイテムを日付で取得する

date Time!
itemsInPeriod ItemsInPeriod!

期間でアイテムを取得する

input InputItemsInPeriod!
invite Invite!

招待コードを取得する

inviteByCode User!

招待コードからユーザーを取得する

code String!
relationshipRequests RelationshipRequests!

招待の申請リクエストを取得する

input InputRelationshipRequests!
relationships Relationships!

共有ユーザーを取得する

input InputRelationships!

Mutation

Field Argument Type Description
createUser User!

ユーザーを作成する

input NewUser!
createAuthUser AuthUser!

認証ユーザーを作成する

input NewAuthUser!
updateUser User!

ユーザーを更新する

input UpdateUser!
deleteUser User!

ユーザーを削除する

createItem Item!

アイテムを作成する

input NewItem!
updateItem Item!

アイテムを更新する

input UpdateItem!
deleteItem Item!

アイテムを削除する

input DeleteItem!
createInvite Invite!

招待コード作成する

updateInvite Invite!

招待コード更新する

createRelationshipRequest RelationshipRequest!

招待をリクエストする

input NewRelationshipRequest!
acceptRelationshipRequest RelationshipRequest!

招待リクエストを承諾する

followedID String!
ngRelationshipRequest RelationshipRequest!

招待リクエストを拒否する

followedID String!
deleteRelationship Relationship!

共有メンバーを解除する

followedID String!
createPushToken PushToken!

Push 通知のトークンを作成する

input NewPushToken!

Objects

AuthUser

Field Argument Type Description
id ID!

ユーザー ID

displayName String!

表示名

image String!

画像 URL

new Boolean!

新規作成

createdAt Time!

作成日時

updatedAt Time!

更新日時

ExistAuthUser

Field Argument Type Description
exist Boolean!

Invite

Field Argument Type Description
userID ID!

ユーザー ID

code String!

招待コード

createdAt Time!

作成日時

updatedAt Time!

更新日時

Item

Field Argument Type Description
id ID!

アイテム ID

userID String!

ユーザー ID

title String!

タイトル

categoryID Int!

カテゴリー ID

date Time!

日付

like Boolean!
dislike Boolean!
createdAt Time!

作成日時

updatedAt Time!

更新日時

ItemsInPeriod

Field Argument Type Description
pageInfo PageInfo!
edges [ItemsInPeriodEdge!]!
totalCount Int!

ItemsInPeriodEdge

Field Argument Type Description
node Item
cursor String!

PageInfo

Field Argument Type Description
endCursor String!
hasNextPage Boolean!

PushToken

Field Argument Type Description
userID ID!

ユーザー ID

token String!

Push 通知トークン

deviceID String!

デバイス ID

createdAt Time!

作成日時

updatedAt Time!

更新日時

Relationship

Field Argument Type Description
id ID!

ID

followerId String!

フォローしたユーザー ID

followedId String!

フォローされたユーザー ID

createdAt Time!

作成日時

updatedAt Time!

更新日時

user User

ユーザー情報

skip Boolean

RelationshipEdge

Field Argument Type Description
node Relationship
cursor String!

RelationshipRequest

Field Argument Type Description
id ID!

ID

followerId String!

フォローしたユーザー ID

followedId String!

フォローされたユーザー ID

status Int!

1:申請中、2:拒否、3: 承認

createdAt Time!

作成日時

updatedAt Time!

更新日時

user User

ユーザー情報

skip Boolean

RelationshipRequestEdge

Field Argument Type Description
node RelationshipRequest
cursor String!

RelationshipRequests

Field Argument Type Description
pageInfo PageInfo!
edges [RelationshipRequestEdge!]!

Relationships

Field Argument Type Description
pageInfo PageInfo!
edges [RelationshipEdge!]!

User

Field Argument Type Description
id ID!

ユーザー ID

displayName String!

表示名

image String!

画像 URL

createdAt Time!

作成日時

updatedAt Time!

更新日時

Inputs

DeleteItem

Field Type Description
id ID!

アイテム ID

InputItemsInPeriod

Field Type Description
after String
first Int!
startDate Time!

開始日

endDate Time!

終了日

userIDList [String]

ユーザー ID

categoryID Int

カテゴリー ID

like Boolean

Good

dislike Boolean

Bad

InputRelationshipRequests

Field Type Description
after String
first Int!

InputRelationships

Field Type Description
after String
first Int!

NewAuthUser

Field Type Description
id ID!

ユーザー ID

isNewUser Boolean!

true: ユーザー作成を行う

NewItem

Field Type Description
title String!

タイトル

categoryID Int!

カテゴリー ID

date Time!

日付

like Boolean!
dislike Boolean!

NewPushToken

Field Type Description
token String!

Push 通知トークン

deviceID String!

デバイス ID

NewRelationshipRequest

Field Type Description
code String!

招待コード

NewUser

Field Type Description
id ID!

ユーザー ID

UpdateItem

Field Type Description
id ID!

アイテム ID

title String

タイトル

categoryID Int

カテゴリー ID

date Time

日付

like Boolean
dislike Boolean

UpdateUser

Field Type Description
displayName String!

表示名

image String!

画像 URL

Scalars

Boolean

The Boolean scalar type represents true or false.

Float

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

String

The Stringscalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Time