Hey, i am looking for some info how to extend sche...
# prisma-whats-new
h
Hey, i am looking for some info how to extend schema inside graphcool-binding, any resources? For example i want extend my apllication schema on user type with full name:
fullname = firstname + lastname
ty for any resource ā¤ļø
i
Interfaces?
n
h
Its possbile to extend imported type somehow? Or i need to write whole schema for that type?
i
What do you mean by extending the imported type?
h
I import types like this:
# import User from "../database/schema.generated.graphql"
Then i write type Query like this:
Copy code
type Query {
  me: User
  users: [User]
}
And i have defined user somehow, but i want to add extra field to user
fullName
, so its possible to write whole
User
type again or i was thinking it could be somehow possible to extend
User
what i imported from my database schema
i
For interfaces, yes. You can
implements
another type. For what @nilan said above, I’m not sure.
n
that's a great feature request for https://github.com/graphcool/graphql-import, could you add it there @huv1k?
h
Okey, its already there
n
a
Unfortunately, this is a limitation coming from
graphql
, as I have also indicated in the issue before. There's nothing we can do about that (other than creating a PR for
graphql
...)
n
I wasn't sure if @huv1k's case is a different situation šŸ™‚
a
Unfortunately not...
šŸ‘ 1