Skip to content

Calling Database Query without specifying DatabaseQueryRequest fails #11

@me-coditation

Description

@me-coditation

var ptr *notion.DatabaseQueryRequest
response, err := client.Database.Query(context.Background(), notion.DatabaseID(id), ptr)

As seen in the snippet above, if a pointer to empty struct or nil is passed, the module encounters error.

image

I have confirmed that the POST /v1/databases/<id>/query works without supplying any of the filter, sort, cursor or page size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions