You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you share the code and open the PR? Depending where uou’re Injecting this logic, you may be mistaken. This layer of validation should probably be in RestWrite, using the Schema table as a reference.
I found out that the AddOp created by parse-server > RestWrite > sanitizedData > Parse._decode
is not an instance of the ParseOp.Op from parse-sdk > ParseObject > set
It may be a problem relative to my setup ( webpack on both client and server with both HMR )
I tried to bundle the parse-server within my server bundle but I got errors due to relative SQL files
I tried with the SDK too but it doesn't seem to change anything
Activity
flovilmart commentedon Jul 10, 2018
Can you share the code and open the PR? Depending where uou’re Injecting this logic, you may be mistaken. This layer of validation should probably be in RestWrite, using the Schema table as a reference.
Aetherall commentedon Jul 10, 2018
I found out that the AddOp created by
parse-server > RestWrite > sanitizedData > Parse._decodeis not an instance of the ParseOp.Op from
parse-sdk > ParseObject > setIt may be a problem relative to my setup ( webpack on both client and server with both HMR )
I tried to bundle the parse-server within my server bundle but I got errors due to relative SQL files
I tried with the SDK too but it doesn't seem to change anything
Aetherall commentedon Jul 10, 2018
I found it, the class used 'parse/browser' from client because the server imported the client app for SSR
To fix it, I created global.Parse on the client too and stopped importing 'parse'
[-]PR => extending Parse.Object[/-][+]Error: schema mismatch Operation instances[/+]