Do I have to use `connect` to set a foreignKey....
# orm-help
n
Do I have to use
connect
to set a foreignKey....like a userId or I can also just set directly?
Copy code
userId: 64
or
Copy code
userId: {
   connect: {
       id: 64
       }
}
r
You can use any one. If you have another `connect`/`create` then you must use
connect
else you can directly specify the foreign key.
n
@Ryan thanks
👍 1