Remove hard-coded record types #52

Merged
ashwin merged 11 commits from deep-stack/laconic-sdk:ng-rm-record-types into main 2024-01-15 04:58:56 +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]) });