notion-sdk-net icon indicating copy to clipboard operation
notion-sdk-net copied to clipboard

DatabaseQueryResponse.Results returns a PaginatedList<IWikidatabase> -> code is not compiling

Open boschn opened this issue 2 months ago • 3 comments

Describe the bug

Image

In Code Snippet the object queryResults has no ** Properties** property so is not compiling and providing the right function.

changing the class back to Page (instead of an interface) makes it work.

namespace Notion.Client { // ReSharper disable once ClassNeverInstantiated.Global // BUG: public class DatabaseQueryResponse : PaginatedList<IWikiDatabase>

public class DatabaseQueryResponse : PaginatedList<Page>
{
    [JsonProperty("database")]
    public Dictionary<string, object> Database { get; set; }
}

}

Additional context Maybe the code intension was to introduce an abstract interface.

boschn avatar Sep 26 '25 14:09 boschn