How to use the relay-runtime.ConnectionHandler.insertEdgeBefore function in relay-runtime

To help you get started, we’ve selected a few relay-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenCTI-Platform / opencti / opencti-front / src / private / components / organization / OrganizationCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_organizations',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / common / external_references / ExternalReferenceCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_externalReferences',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-front / src / private / components / workspace / WorkspaceCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_workspaces',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / techniques / tools / ToolCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_tools',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / entities / persons / PersonCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_users',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / threats / threat_actors / ThreatActorCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_threatActors',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / settings / users / UserCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_users',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / signatures / stix_observables / StixObservableCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_stixObservables',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / techniques / attack_patterns / AttackPatternCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_attackPatterns',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / common / stix_domain_entities / StixDomainEntityCreation.js View on Github external
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
  const userProxy = store.get(userId);
  const conn = ConnectionHandler.getConnection(
    userProxy,
    'Pagination_stixDomainEntities',
    paginationOptions,
  );
  ConnectionHandler.insertEdgeBefore(conn, newEdge);
};