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 {
1515 getSchemaDirectives
1616} from 'graphql-to-sql'
1717
18- const typeDefs = `
18+ const typeDefs = gql `
1919 directive @sql (
2020 unicode: Boolean
2121 constraints: String
@@ -48,7 +48,7 @@ const typeDefs = `
4848 dateCreated: String @sql(type: "TIMESTAMP", default: "CURRENT_TIMESTAMP")
4949 }
5050
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)") {
5252 userPairId: String @sql(type: "BINARY(16)", primary: true)
5353 parentUserId: String @sql(type: "BINARY(16)", index: true)
5454 childUserId: String @sql(type: "BINARY(16)", index: true)
You can’t perform that action at this time.
0 commit comments