Skip to content

Latest commit

 

History

History
86 lines (77 loc) · 1.72 KB

File metadata and controls

86 lines (77 loc) · 1.72 KB

core-graph

Developer Guide

We use a few different naming conventions to represent different parts of a Node. They are to be used as follows:

NestedDictionary nodeDataDict

var nodeValueDict = new NestedDictionary()
{
    {
        "Fields", new FlatDictionary
        {
            { "fieldKey", Field },
        }
    },
    {
        "Edge", new FlatDictionary
        {
            { "edgeKey", Edge },
        }
    },
    {
        "EdgeCollections", new FlatDictionary
        {
            { "edgeCollectionKey", EdgeCollection }
        }
    }
}

NestedDictionary nodeMetaDict

var nodeDict = new NestedDictionary()
{
    "Meta", new FlatDictionary
    {
        { "Guid", Guid },
        { "Tag", string },
        { "Deleted", boolean }
    }
}

NestedDictionary nodeRepDict

Note that the nodeRepDict contains both of the nodeMetaDict and nodeValuesDict. The nodeValuesDict lies as a first layer dictionary as either data or delta.

var nodeDict = new NestedDictionary()
{
    {
        "Meta", new FlatDictionary
        {
            { "Guid", Guid },
            { "Tag", string },
            { "Deleted", boolean }
        }
    },
    {
        "Data", new FlatDictionary
        {
            {
                "Fields", new FlatDictionary
                {
                    { "fieldKey", Field },
                }
            },
            {
                "Edge", new FlatDictionary
                {
                    { "edgeKey", Edge },
                }
            },
            {
                "EdgeCollections", new FlatDictionary
                {
                    { "edgeCollectionKey", EdgeCollection }
                }
            }
        }
    }
}