Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Deep RunKit

node v14.20.1
version: 0.0.0
endpointsharetweet
Prepare utilities... Require modules. Create http/https/ws/wss connection automatically. (Copy and insert on 11 line path to your gql.
require('react'); require('graphql'); require('lodash'); require('subscriptions-transport-ws'); const { generateApolloClient } = require("@deep-foundation/hasura/client"); const { DeepClient } = require('@deep-foundation/deeplinks/imports/client'); const { minilinks, Link } = require('@deep-foundation/deeplinks/imports/minilinks'); const apolloClient = generateApolloClient({ path: '3006-deepfoundation-dev-agwamgg8j8s.ws-eu38.gitpod.io/gql', ssl: true, token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwczovL2hhc3VyYS5pby9qd3QvY2xhaW1zIjp7IngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsibGluayJdLCJ4LWhhc3VyYS1kZWZhdWx0LXJvbGUiOiJsaW5rIiwieC1oYXN1cmEtdXNlci1pZCI6IjIwNiJ9LCJpYXQiOjE2NDg0MDkzODV9.aiMZAI65NGEWwERsj1qdimHZcqkuaSLHBR8nGo8n2Nk', }); const deep = new DeepClient({ apolloClient });
Lets select all links from database. DeepClient documentation https://ivansglazunov.notion.site/DeepClient-ce72ce9537564cc283b45c83fd4b779f.
const allLinks = await deep.select({});
Apply changes (all links to empty minilinks cache).
const ml = minilinks(); ml.apply(allLinks.data);
What is the Contain type link id?
const Contain = await deep.id('@deep-foundation/core', 'Contain');
ml.byId[Contain].typed.filter(l => !l.value);
Loading…

no comments

    sign in to comment