Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hub-js/graphql/local/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type TypeInstanceResourceVersionSpec {
abstract: backendRef.abstract,
fetchInput: {
typeInstance: { resourceVersion: rev.resourceVersion, id: ti.id },
backend: { context: backendCtx.context, id: backendRef.id}
backend: { context: apoc.convert.fromJsonMap(backendCtx.context), id: backendRef.id}
}
} AS value
RETURN value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function deleteTypeInstance(

// NOTE: Need to be preserved with 'WITH' statement, otherwise we won't be able
// to access node's properties after 'DETACH DELETE' statement.
WITH *, {id: ti.id, backend: { id: backendRef.id, context: specBackend.context, abstract: backendRef.abstract}} as out
WITH *, {id: ti.id, backend: { id: backendRef.id, context: apoc.convert.fromJsonMap(specBackend.context), abstract: backendRef.abstract}} as out
DETACH DELETE ti, metadata, spec, tirs, specBackend

WITH *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export async function getTypeInstanceStoredExternally(

WITH {
typeInstanceId: ti.id,
backend: { context: backendCtx.context, id: backendRef.id, abstract: backendRef.abstract}
backend: { context: apoc.convert.fromJsonMap(backendCtx.context), id: backendRef.id, abstract: backendRef.abstract}
} AS value
RETURN value
`,
Expand Down