Schema

A node schema describes the fields a node type carries. Fields are added through the fluent ISchema interface, and a finished schema is registered with Graph.CreateNodeSchemaAsync — either from a [Node]-annotated class or from a fluent definition. Field values use the FieldType wire types below.

ISchema

interface

ISchema

public interface ISchema
Namespace
Curiosity.Library

Methods

NameDescription
FieldAdds a field named name of type type
ListFieldAdds a List Field named name of type type
TableFieldAdds a Table Field named name of type type
DictionaryFieldAdds a Dictionary Field named name with value type type (key type is always string)
Method
ISchema.Field
ISchema Field(string name, FieldType type)

Adds a field named name of type type

Method
ISchema.ListField
ISchema ListField(string name, FieldType type)

Adds a List Field named name of type type

Method
ISchema.TableField
ISchema TableField(string name, FieldType type)

Adds a Table Field named name of type type

Method
ISchema.DictionaryField
ISchema DictionaryField(string name, FieldType type)

Adds a Dictionary Field named name with value type type (key type is always string)

FieldType

enum

FieldType

public enum FieldType

For Fields (properties of nodes in the graph) these types are available.

Namespace
Curiosity.Library

Values

NameDescription
SByteSigned byte.
UInt32Unsigned integer with 32 bit.
UInt64unsigned integer with 64 bit.
TimeFormat to process dates and time. It is possible to pass in Time or the C# formats DateTime and DateTimeOffset.
GeoPointSee GeoPoint. Do not forget to resume indexing with ResumeAsync.
LanguageSee Language
UID128Unique identifier. See UID128
Value
FieldType.SByte
SByte

Signed byte.

Value
FieldType.UInt32
UInt32

Unsigned integer with 32 bit.

Value
FieldType.UInt64
UInt64

unsigned integer with 64 bit.

Value
FieldType.Time
Time

Format to process dates and time. It is possible to pass in Time or the C# formats DateTime and DateTimeOffset.

Value
FieldType.GeoPoint
GeoPoint

See GeoPoint. Do not forget to resume indexing with ResumeAsync.

Value
FieldType.Language
Language

See Language

Value
FieldType.UID128
UID128

Unique identifier. See UID128

Applies to

Curiosity.Library — 2024.1 and later. Full type table and constraints in the Schema reference.

© 2026 Curiosity. All rights reserved.