Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
adjust Prisma Docker images to v1.31 and to add @id directive
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Apr 15, 2019
1 parent 15a54f0 commit fa4b960
Show file tree
Hide file tree
Showing 69 changed files with 119 additions and 119 deletions.
2 changes: 1 addition & 1 deletion .github/readmes/flow/_setup-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
2 changes: 1 addition & 1 deletion .github/readmes/go/_setup-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
2 changes: 1 addition & 1 deletion .github/readmes/node/_setup-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
6 changes: 3 additions & 3 deletions .github/readmes/node/graphql-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ For that, you first need to adjust the Prisma datamodel in [`./prisma/datamodel.

```diff
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
+ comments: [Comment!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand All @@ -91,7 +91,7 @@ type Post {
}

+ type Comment {
+ id: ID! @unique
+ id: ID! @id
+ text: String!
+ writtenBy: User!
+ post: Post!
Expand Down
6 changes: 3 additions & 3 deletions .github/readmes/node/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ For that, you first need to adjust the Prisma datamodel in [`./prisma/datamodel.

```diff
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
+ comments: [Comment!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand All @@ -94,7 +94,7 @@ type Post {
}

+ type Comment {
+ id: ID! @unique
+ id: ID! @id
+ text: String!
+ writtenBy: User!
+ post: Post!
Expand Down
2 changes: 1 addition & 1 deletion .github/readmes/typescript/_setup-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ Here's an overview of the used datamodels and APIs:

```graphql
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand All @@ -66,14 +66,14 @@ type Post {

```graphql
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down Expand Up @@ -129,7 +129,7 @@ type User {

```graphql
type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand All @@ -139,7 +139,7 @@ type Post {
}

type User {
id: ID! @unique
id: ID! @id
email: String! @unique
password: String!
name: String
Expand Down Expand Up @@ -200,7 +200,7 @@ type User {

```graphql
type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down Expand Up @@ -250,14 +250,14 @@ type Post {

```graphql
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down Expand Up @@ -307,7 +307,7 @@ type Post {

```graphql
type Todo {
id: ID! @unique
id: ID! @id
title: String! @unique
createdAt: DateTime!
}
Expand Down
2 changes: 1 addition & 1 deletion flow/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
4 changes: 2 additions & 2 deletions flow/graphql/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down
2 changes: 1 addition & 1 deletion flow/script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
4 changes: 2 additions & 2 deletions flow/script/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down
2 changes: 1 addition & 1 deletion go/cli-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
2 changes: 1 addition & 1 deletion go/cli-app/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type Todo {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
text: String! @unique
}
2 changes: 1 addition & 1 deletion go/docker-mongodb/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
2 changes: 1 addition & 1 deletion go/docker-mysql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
6 changes: 3 additions & 3 deletions go/docker-mysql/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
comments: [Comment!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
title: String!
Expand All @@ -18,7 +18,7 @@ type Post {
}

type Comment {
id: ID! @unique
id: ID! @id
text: String!
writtenBy: User!
}
2 changes: 1 addition & 1 deletion go/docker-postgres/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
6 changes: 3 additions & 3 deletions go/docker-postgres/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
comments: [Comment!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
title: String!
Expand All @@ -18,7 +18,7 @@ type Post {
}

type Comment {
id: ID! @unique
id: ID! @id
text: String!
writtenBy: User!
}
2 changes: 1 addition & 1 deletion go/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
4 changes: 2 additions & 2 deletions go/graphql/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down
2 changes: 1 addition & 1 deletion go/http-mux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
4 changes: 2 additions & 2 deletions go/http-mux/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down
2 changes: 1 addition & 1 deletion go/rest-gin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, follow these steps in the interactive CLI wizard:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.30
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
Expand Down
4 changes: 2 additions & 2 deletions go/rest-gin/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
type User {
id: ID! @unique
id: ID! @id
email: String! @unique
name: String
posts: [Post!]!
}

type Post {
id: ID! @unique
id: ID! @id
createdAt: DateTime!
updatedAt: DateTime!
published: Boolean! @default(value: "false")
Expand Down
Loading

0 comments on commit fa4b960

Please sign in to comment.