blob: f9c1853bbc2f149b72c9ad5d12da90e35f177566 [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{"./src/documents/Misc/SoftReference.md":function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return c}));var n=i("../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=(i("../node_modules/react/index.js"),i("../node_modules/@mdx-js/react/dist/esm.js")),r=(i("./theme/styles/styled-colors.js"),i("../node_modules/react-syntax-highlighter/dist/esm/styles/hljs/dark.js")),a=i("../node_modules/react-syntax-highlighter/dist/esm/default-highlight.js"),o=["components"],d={};function c(e){var t=e.components,i=Object(n.a)(e,o);return Object(s.mdx)("wrapper",Object.assign({},d,i,{components:t,mdxType:"MDXLayout"}),Object(s.mdx)("h1",{id:"entity-attribute-option-softreference"},"Entity Attribute Option: SoftReference"),Object(s.mdx)("h4",{id:"background"},"Background"),Object(s.mdx)("p",null,"Entity attributes are specified using attribute definitions. An attributes' persistence strategy is determined by based on their type."),Object(s.mdx)("p",null,"Primitive types are persisted as properties within the vertex of their parent."),Object(s.mdx)("p",null,"Non-primitive attributes get a vertex of their own and edge is created between the parent the child to establish ownership."),Object(s.mdx)("p",null,"Attribute with ",Object(s.mdx)("em",{parentName:"p"},"isSoftReference")," option set to ",Object(s.mdx)("em",{parentName:"p"},"true"),", is non-primitive attribute that gets treatment of a primitive attribute."),Object(s.mdx)("h4",{id:"specification"},"Specification"),Object(s.mdx)("p",null,"Below is an example of using the new attribute option."),Object(s.mdx)(a.a,{wrapLines:!0,language:"json",style:r.a,mdxType:"SyntaxHighlighter"},'"attributeDefs": [\n {\n "name": "replicatedFrom",\n "typeName": "array<AtlasServer>",\n "cardinality": "SET",\n "isIndexable": false,\n "isOptional": true,\n "isUnique": false,\n "options": {\n "isSoftReference": "true"\n }\n },...]'))}c&&c===Object(c)&&Object.isExtensible(c)&&Object.defineProperty(c,"__filemeta",{enumerable:!0,configurable:!0,value:{name:"MDXContent",filename:"src/documents/Misc/SoftReference.md"}}),c.isMDXComponent=!0},"./theme/styles/styled-colors.js":function(e,t,i){"use strict";var n=i("../node_modules/react-syntax-highlighter/dist/esm/styles/hljs/dark.js");n.a.hljs.color="#37bb9b",t.a=n.a}}]);
//# sourceMappingURL=documents-misc-soft-reference.b185f4c5b68d73002af0.js.map