Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ public class CreateCollectionRequest : DatabaseIdBaseRequest<CreateCollectionReq
/// Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
/// </summary>
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
public bool Enabled { get; set; } = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ public class CreateDatabaseRequest : BaseRequest<CreateDatabaseRequest, CreateDa
/// Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled
/// </summary>
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
public bool Enabled { get; set; } = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void Constructor_InitializesWithExpectedValues()
Assert.Equal(string.Empty, request.Name);
Assert.NotNull(request.Permissions);
Assert.False(request.DocumentSecurity);
Assert.False(request.Enabled);
Assert.True(request.Enabled);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void Constructor_InitializesWithExpectedValues()
// Assert
Assert.NotEmpty(request.DatabaseId);
Assert.Equal(string.Empty, request.Name);
Assert.False(request.Enabled);
Assert.True(request.Enabled);
}

[Fact]
Expand Down