You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@ This example illustrates the implementation of File API with GraphQL Server patt
4
4
5
5
## Getting Started
6
6
7
-
### Initializing the Graphcool Database Service
7
+
### Initializing Prisma Database Service
8
8
```sh
9
9
graphcool deploy # choose local cluster
10
-
# copy API endpoint into the `GRAPHCOOL_ENPOINT` env var in .env
10
+
# copy API endpoint into the `PRISMA_ENPOINT` env var in .env
11
11
```
12
12
13
13
To get `GRAPHCOOL_SECRET` visit http://jwtbuilder.jamiekurtz.com and scroll to the bottom where you can hash your secret from `graphcool.yml` and get the hashed output. (`sssh` is used in the example.)
@@ -37,7 +37,7 @@ It's important to use the form parameter `data` as seen in the example below.
37
37
38
38
### Uploading workflow
39
39
40
-
Everytime you upload a file to Graphcool, a new `File` node is created that contains information about that file.
40
+
Everytime you upload a file to Prisma, a new `File` node is created that contains information about that file.
41
41
42
42
*`id`: the [familiar system field](!alias-eiroozae8u#id-field)
43
43
*`secret`: a unique, unguessable secret that allows access to the file
The `String` scalar 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.
463
-
*/
464
-
exporttypeString=string
457
+
exportinterfaceFileSubscriptionPayload{
458
+
mutation: MutationType
459
+
node?: File
460
+
updatedFields?: String[]
461
+
previousValues?: FilePreviousValues
462
+
}
463
+
464
+
exportinterfaceFileConnection{
465
+
pageInfo: PageInfo
466
+
edges: FileEdge[]
467
+
aggregate: AggregateFile
468
+
}
469
+
470
+
exporttypeDateTime=string
465
471
466
472
/*
467
-
The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
473
+
The `Boolean` scalar type represents `true` or `false`.
468
474
*/
469
-
exporttypeInt=number
470
-
471
-
exporttypeLong=string
475
+
exporttypeBoolean=boolean
472
476
473
477
/*
474
478
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.
475
479
*/
476
480
exporttypeID_Input=string|number
477
481
exporttypeID_Output=string
478
482
479
-
exporttypeDateTime=string
483
+
/*
484
+
The `String` scalar 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.
485
+
*/
486
+
exporttypeString=string
480
487
481
488
/*
482
-
The `Boolean` scalar type represents `true` or `false`.
489
+
The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
0 commit comments