Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index most used field for ordering #246

Merged
merged 6 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion schema/NFTs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type TransactionalStatusAuction {
"Represents NFT details"
type OwnedNft @entity {
"Timestamp of the block the NFT was created at"
createdAt: DateTime!
createdAt: DateTime! @index

"NFT's video"
video: Video! @unique
Expand Down
2 changes: 1 addition & 1 deletion schema/events.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Event @entity {
indexInBlock: Int!

"Timestamp of the block the event was emitted in"
timestamp: DateTime!
timestamp: DateTime! @index

"More specific event data, which depends on event type"
data: EventData!
Expand Down
2 changes: 1 addition & 1 deletion schema/videos.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Video @entity {
id: ID!

"Timestamp of the block the video was created at"
createdAt: DateTime!
createdAt: DateTime! @index

"Reference to videos's channel"
channel: Channel!
Expand Down
Loading