@fowgence/api-schema 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +16 -0
  2. package/schema.gql +28 -0
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@fowgence/api-schema",
3
+ "version": "1.0.0",
4
+ "description": "Auto-generated GraphQL schema for the Next.js frontend",
5
+ "main": "schema.gql",
6
+ "files": [
7
+ "schema.gql"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/haruhisayaguchi/fowgence-backend.git"
15
+ }
16
+ }
package/schema.gql ADDED
@@ -0,0 +1,28 @@
1
+ # ------------------------------------------------------
2
+ # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
3
+ # ------------------------------------------------------
4
+
5
+ type Post {
6
+ id: Int!
7
+ title: String!
8
+ votes: Int
9
+ }
10
+
11
+ type Author {
12
+ id: Int!
13
+ firstName: String
14
+ lastName: String
15
+ posts: [Post!]!
16
+ }
17
+
18
+ type Query {
19
+ author(id: Int!): Author!
20
+ }
21
+
22
+ type Mutation {
23
+ upvotePost(upvotePostData: UpvotePostInput!): Post!
24
+ }
25
+
26
+ input UpvotePostInput {
27
+ postId: Float!
28
+ }