Fix GQL QueryLink #45

Merged
telackey merged 2 commits from telackey/gqlfix into main 2024-01-16 23:40:43 +00:00
2 changed files with 41 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/console-app",
"version": "1.3.6",
"version": "1.3.7",
"description": "Laconic Console",
"repository": "https://github.com/cerc-io/laconic-console",
"main": "dist/es/index.js",

View File

@ -10,8 +10,41 @@ import LinkIcon from '@material-ui/icons/ExitToApp';
import { getServiceUrl } from '../util/config';
const QUERY = `
query {
getRecordsByIds(ids: [ "%ID%" ]) {
fragment ValueParts on Value {
... on BooleanValue {
bool: value
}
... on IntValue {
int: value
}
... on FloatValue {
float: value
}
... on StringValue {
string: value
}
... on BytesValue {
bytes: value
}
... on LinkValue {
link: value
}
}
fragment AttrParts on Attribute {
key
value {
...ValueParts
... on ArrayValue {
value {
...ValueParts
}
}
}
}
{
getRecordsByIds(ids: ["%ID%"]) {
id
names
bondId
@ -19,12 +52,12 @@ const QUERY = `
expiryTime
owners
attributes {
key
...AttrParts
value {
string
json
reference {
id
... on MapValue {
map: value {
...AttrParts
}
}
}
}