Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Labels
questionFurther information is requested
@boschn

Description

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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /