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

Ability to sort nodes last in group #2235

Open
deathemperor opened this issue Mar 20, 2024 · 2 comments · May be fixed by #2385
Open

Ability to sort nodes last in group #2235

deathemperor opened this issue Mar 20, 2024 · 2 comments · May be fixed by #2385

Comments

@deathemperor
Copy link

In large queries with many fields and sub fields, I prefer to put sub query nodes last. As with big queries, finding fields last under other nodes is a pain

For example:

current situation

query books {
	id
	title
	author {
		id
		addresses {
			id
			street_name
		}
		name
	}
	series {
		id
		title
	}
	created_at
	updated_at
}

Desire sort:

query books {
	id
	title
	created_at
	updated_at
	author {
		id
		name
		addresses {
			id
			street_name
		}
	}
	series {
		id
		title
	}
}
@dimaMachina
Copy link
Owner

dimaMachina commented Mar 20, 2024

I like this idea, pr welcome (via the new option for existing rule)

@deathemperor
Copy link
Author

@dimaMachina added the PR #2385, I chose relationships_last as the config name, please suggest a better name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants