Skip to content

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

@boschn

Description

@boschn

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions