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

associated fields with an alias name inside a nested schema #14

Open
github-actions bot opened this issue Nov 28, 2024 · 0 comments
Open

associated fields with an alias name inside a nested schema #14

github-actions bot opened this issue Nov 28, 2024 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link

somehow breaks! Should be looked in to?

Workaround: set `recursive: 0` on the root schema field

console.log('Alias:', alias, 'config:', config, this.schema);

// @TODO: associated fields with an alias name inside a nested schema

		config = this.schema.associations[alias];
	}

	// @TODO: associated fields with an alias name inside a nested schema
	// somehow breaks! Should be looked in to?
	// Workaround: set `recursive: 0` on the root schema field
	// console.log('Alias:', alias, 'config:', config, this.schema);

	if (config) {
		result = this.getModel(config.modelName);
	} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant