Parse.Schema.addField accepts Pointer and Relation types but functions not setup to accept these inputs #1281
Closed
4 tasks done
Labels
type:docs
Only change in the docs or README
Uh oh!
There was an error while loading. Please reload this page.
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
2.19.0
The text was updated successfully, but these errors were encountered: