Graphql schema for DAG-JSON objects #1

Merged
ashwin merged 13 commits from ng-gql-ipld into ng-rm-record-types 2024-01-11 09:46:41 +00:00
Showing only changes of commit e004584685 - Show all commits

View File

@ -80,23 +80,35 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
false, false,
1, 1,
}, },
{ // Skip the following test as querying with recursive values not supported (PR https://git.vdb.to/cerc-io/laconicd/pulls/112)
"Filter with tag (extant) (https://git.vdb.to/cerc-io/laconicd/issues/129)", // See function RecordsFromAttributes (QueryValueToJSON call) in the registry keeper implementation (x/registry/keeper/keeper.go)
&registrytypes.QueryListRecordsRequest{ // {
Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{ // "Filter with tag (extant) (https://git.vdb.to/cerc-io/laconicd/issues/129)",
{ // &registrytypes.QueryListRecordsRequest{
Key: "tags", // Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{
Value: &registrytypes.QueryListRecordsRequest_ValueInput{ // {
Value: &registrytypes.QueryListRecordsRequest_ValueInput_String_{"tagA"}, // Key: "tags",
}, // // Value: &registrytypes.QueryListRecordsRequest_ValueInput{
}, // // Value: &registrytypes.QueryListRecordsRequest_ValueInput_String_{"tagA"},
}, // // },
All: true, // Value: &registrytypes.QueryListRecordsRequest_ValueInput{
}, // Value: &registrytypes.QueryListRecordsRequest_ValueInput_Array{Array: &registrytypes.QueryListRecordsRequest_ArrayInput{
true, // Values: []*registrytypes.QueryListRecordsRequest_ValueInput{
false, // {
1, // Value: &registrytypes.QueryListRecordsRequest_ValueInput_String_{"tagA"},
}, // },
// },
// }},
// },
// // Throws: "Recursive query values are not supported"
// },
// },
// All: true,
// },
// true,
// false,
// 1,
// },
{ {
"Filter with tag (non-existent) (https://git.vdb.to/cerc-io/laconicd/issues/129)", "Filter with tag (non-existent) (https://git.vdb.to/cerc-io/laconicd/issues/129)",
&registrytypes.QueryListRecordsRequest{ &registrytypes.QueryListRecordsRequest{