这是indexloc提供的服务,不要输入任何密码
Skip to content

Support optional parameters for custom sql functions #2176

@kraciasty

Description

@kraciasty

Creating a simple function like this:
CREATE FUNCTION search_articles(search text, optionalStatus int DEFAULT 1)
should allow passing only the required parameters to args in queries.

query SearchForArticles($phrase: String!, $status: Int) {
  search_articles(
    args: {
      search: $phrase,
     optionalstatus: $status // still required
    }
  ) {
    id
    content
    title
  }
}

function_params_required

Metadata

Metadata

Assignees

Labels

c/serverRelated to servere/quickfixcan be wrapped up in few hoursk/bugSomething isn't workingp/mediumnon-urgent issues/features that are candidates for being included in one of the upcoming sprints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions