File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
15
15
getSchemaDirectives
16
16
} from 'graphql-to-sql'
17
17
18
- const typeDefs = `
18
+ const typeDefs = gql `
19
19
directive @sql (
20
20
unicode: Boolean
21
21
constraints: String
@@ -48,7 +48,7 @@ const typeDefs = `
48
48
dateCreated: String @sql(type: "TIMESTAMP", default: "CURRENT_TIMESTAMP")
49
49
}
50
50
51
- type UserPair @sql(constraints: "UNIQUE(parentUserId, childUserId),\n FOREIGN KEY (parentUserId) REFERENCES User(userId)") {
51
+ type UserPair @sql(constraints: "UNIQUE(parentUserId, childUserId),\\ n FOREIGN KEY (parentUserId) REFERENCES User(userId)") {
52
52
userPairId: String @sql(type: "BINARY(16)", primary: true)
53
53
parentUserId: String @sql(type: "BINARY(16)", index: true)
54
54
childUserId: String @sql(type: "BINARY(16)", index: true)
You can’t perform that action at this time.
0 commit comments