Update for DAG-JSON compatible schema #1

Merged
ashwin merged 5 commits from ng-gql-ipld into ng-rm-record-types 2024-01-11 09:48:37 +00:00
2 changed files with 0 additions and 3 deletions
Showing only changes of commit 4dfc424762 - Show all commits

View File

@ -256,11 +256,9 @@ export class RegistryClient {
attributes: Util.toGQLAttributes(attributes),
all
};
console.debug("[DEBUG] variables", variables);
let result = (await this._graph(query)(variables))['queryRecords'];
result = RegistryClient.prepareAttributes('attributes')(result);
console.debug("[DEBUG] prepared result", result);
return result;
}

View File

@ -33,7 +33,6 @@ export class Util {
* Marshal object into gql 'attributes' variable.
*/
static toGQLAttributes(obj: any) {
console.log("[DEBUG] toGQLAttributes", obj);
const vars: any[] = [];
Object.keys(obj).forEach(key => {
vars.push({ key, value: this.toGQLValue(obj[key]) });