Hi all,
Is there any way to do a fetchWithInclude
but on the user class, specifically on logIn
?
I’d like the pointer to be included in login, however I have to call .fetch
currently.
Use case:
it('can login with fetch', async () => {
const user = new Parse.User();
user.set('username','username');
user.set('password','pass');
const pointer = new Parse.Object('Test');
pointer.set('foo','bar');
user.set('pointer',pointer);
await user.signUp();
await Parse.User.logOut();
await Parse.User.logIn('username','pass'); // any way to pass fields to fetch here?
const current = Parse.User.current();
expect(current.get('pointer').get('foo')).toEqual('bar'); // fails as pointer isn't fetched
})
Thanks!