Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL : Add custom fields as filter arguments #247

Closed
dgarros opened this issue Apr 6, 2021 · 1 comment · Fixed by #246
Closed

GraphQL : Add custom fields as filter arguments #247

dgarros opened this issue Apr 6, 2021 · 1 comment · Fixed by #246
Assignees
Labels
type: feature Introduction of new or enhanced functionality to the application
Milestone

Comments

@dgarros
Copy link
Contributor

dgarros commented Apr 6, 2021

Environment

  • Python version: 3.7
  • Nautobot version: 1.0.0b2

Proposed Functionality

Add support for custom fields in filter argument for all graphql types
Currently it's possible to define some arguments when querying a model, at the top level, but it's not possible to query by custom fields.

if there is a custom field type defined under Site model, it should be possible to search for cf_type

{
  sites(cf_type: "ams") {
	id
        name
}

Use Case

Similar to the API, it would be good to be able to search by custom fields with cf_<custom_field_name>

Database Changes

No

External Dependencies

No

@glennmatthews glennmatthews added the type: feature Introduction of new or enhanced functionality to the application label Apr 6, 2021
@jathanism
Copy link
Contributor

Fixed in #246

@jathanism jathanism self-assigned this Apr 6, 2021
@jathanism jathanism added this to the v1.0.0 milestone Apr 6, 2021
@jathanism jathanism added this to To do in Release v1.0.0 via automation Apr 6, 2021
@jathanism jathanism moved this from To do to In progress in Release v1.0.0 Apr 6, 2021
Release v1.0.0 automation moved this from In progress to Done Apr 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new or enhanced functionality to the application
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants