This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateHero { | |
objects { | |
createHero(fields: { name: "R2-D2" }) { | |
objectId, | |
createdAt | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateClass { | |
createClass( | |
name: "Hero" | |
schemaFields: { | |
addStrings: [{name: "name"}] | |
addNumbers: [{name: "height"}] | |
}){ | |
schemaFields{ | |
name | |
__typename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateObject { | |
create(className: "Hero" fields:{ | |
name: "Luke Skywalker" | |
}){ | |
objectId | |
createdAt | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateObject { | |
objects { | |
create(className: "Hero", fields: { name: "Luke Skywalker" }) { | |
objectId, | |
createdAt | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"health": true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query Health { | |
health | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TimelineDetailView: View { | |
let previews:[Preview] = [ | |
Preview(id: 0, imageUrl: "1"), | |
Preview(id: 1, imageUrl: "2"), | |
Preview(id: 2, imageUrl: "3"), | |
Preview(id: 3, imageUrl: "4"), | |
Preview(id: 4, imageUrl: "5"), | |
Preview(id: 5, imageUrl: "6"), | |
Preview(id: 6, imageUrl: "7"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TimelineDetailView: View { | |
let previews:[Preview] = [ | |
Preview(id: 0, imageUrl: "1"), | |
Preview(id: 1, imageUrl: "2"), | |
Preview(id: 2, imageUrl: "3"), | |
Preview(id: 3, imageUrl: "4"), | |
Preview(id: 4, imageUrl: "5"), | |
Preview(id: 5, imageUrl: "6"), | |
Preview(id: 6, imageUrl: "7"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct PreviewDetailView: View { | |
let preview: Preview | |
var body: some View { | |
VStack(alignment: .leading){ | |
HStack{ | |
Image("logo-social") | |
.resizable() | |
.frame(width: 60, height: 60) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct PreviewDetailView: View { | |
let preview: Preview | |
var body: some View { | |
VStack(alignment: .leading){ | |
HStack{ | |
Image("logo-social") | |
.resizable() | |
.frame(width: 60, height: 60) |