.NET - Collection.Doc()

Get a reference to a document in the collection.

using Nitric.Sdk;
using Nitric.Sdk.Resources;

var profiles = Nitric.Collection<Profile>("profiles").With(CollectionPermission.Reading, CollectionPermission.Writing);

var drakesProfile = profiles.Doc("Drake Mallard");

Nitric.Run();

Parameters

  • Name
    key
    Required
    Required
    Type
    string
    Description

    The key of the document to reference.

See also