Is it possible to override a platform function?

#1

Let’s say I have :

entity type Foo {

field1 : string

field2 : int

fetch : ~ js server
}

Can I override the implementation of fetch (this function is a platform defined function on persistable)?

0 Likes

#2

I believe the answer is yes. You would have a file called Foo.js and in that file you would put a function called “fetch”

0 Likes

#3

Just as an addendum, overriding fetch is probably a REALLY BAD idea

0 Likes