Skip to content

Commit d8bcc66

Browse files
committed
readme
1 parent 2d5d505 commit d8bcc66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)