Skip to content

Parse.Schema.addField accepts Pointer and Relation types but functions not setup to accept these inputs #1281

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

Closed
4 tasks done
bussedesigngb opened this issue Dec 29, 2020 · 0 comments
Labels
type:docs Only change in the docs or README

Comments

@bussedesigngb
Copy link

bussedesigngb commented Dec 29, 2020

New Issue Checklist

Issue Description

Parse.Schema.addField can accept Pointer|Parse.Relation according to documentation.

Both require a targetClass but there's no way to pass this into the addField function.

The addField function strips out all but the type from the fieldOptions.

Steps to reproduce

Try adding a relation or pointer via the Parse.Schema addField function.

Actual Outcome

Expected Outcome

Either update documentation or maybe pass the targetClass through the options object.

Client

  • Parse JS SDK version: 2.19.0
@dplewis dplewis added the type:docs Only change in the docs or README label Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:docs Only change in the docs or README
Projects
None yet
Development

No branches or pull requests

2 participants