Skip to content

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

@bussedesigngb

Description

@bussedesigngb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:docsOnly change in the docs or README

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions