-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[GraphQL] Try to remove objectKeys #21032
base: main
Are you sure you want to change the base?
Changes from 9 commits
b91770c
084544e
5f613e7
8f822c0
0f27cc2
eb7cba6
e0dd9b4
c3b7430
2ad5d2a
10be979
8b39bdd
f7376b5
b34232d
ae202d6
d5b5f9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,20 +118,18 @@ module Test::M1 { | |
|
||
//# run-graphql | ||
{ | ||
objects_at_version: address(address: "@{A}") { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously, this query also imposed an ownership constraint -- was that relevant for the test? It seems like from the results, version 3 didn't used to exist in the output and now it does. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't follow what is an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The outer query on |
||
objects( | ||
filter: { | ||
type: "@{Test}", | ||
objectKeys: [ | ||
{objectId: "@{obj_2_0}", version: 3}, | ||
{objectId: "@{obj_3_0}", version: 4}, | ||
{objectId: "@{obj_6_0}", version: 5}, | ||
{objectId: "@{obj_7_0}", version: 6} | ||
] | ||
} | ||
) { | ||
nodes { | ||
version | ||
objects_at_version: | ||
multiGetObjects( | ||
keys: [ | ||
{objectId: "@{obj_2_0}", version: 3}, | ||
{objectId: "@{obj_3_0}", version: 4}, | ||
{objectId: "@{obj_6_0}", version: 5}, | ||
{objectId: "@{obj_7_0}", version: 6} | ||
] | ||
) | ||
{ | ||
version | ||
asMoveObject { | ||
contents { | ||
type { | ||
repr | ||
|
@@ -140,7 +138,6 @@ module Test::M1 { | |
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
//# programmable --sender A --inputs object(2,0) object(3,0) object(6,0) object(7,0) @B | ||
|
@@ -275,20 +272,18 @@ module Test::M1 { | |
//# run-graphql | ||
# Historical lookups will still return results at version. | ||
{ | ||
objects_at_version: address(address: "@{A}") { | ||
objects( | ||
filter: { | ||
type: "@{Test}", | ||
objectKeys: [ | ||
{objectId: "@{obj_2_0}", version: 3}, | ||
{objectId: "@{obj_3_0}", version: 4}, | ||
{objectId: "@{obj_6_0}", version: 5}, | ||
{objectId: "@{obj_7_0}", version: 6} | ||
] | ||
} | ||
) { | ||
nodes { | ||
version | ||
objects_at_version: | ||
multiGetObjects( | ||
keys: [ | ||
{objectId: "@{obj_2_0}", version: 3}, | ||
{objectId: "@{obj_3_0}", version: 4}, | ||
{objectId: "@{obj_6_0}", version: 5}, | ||
{objectId: "@{obj_7_0}", version: 6} | ||
] | ||
) | ||
{ | ||
version | ||
asMoveObject { | ||
contents { | ||
type { | ||
repr | ||
|
@@ -297,5 +292,4 @@ module Test::M1 { | |
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these are no longer related to pagination -- it's probably worth putting them in their own test for
multi_get
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved!