我想对typeDef中的代码进行语法高亮处理,这可行吗?
有什么扩展可以做到这一点吗?还是说我必须以其他方式对typeDef进行编码?
export const typeDef = `
type User {
_id: ID!
email: String!
password: String
createdEvents: [Event!]
}
type AuthData {
userId: ID!
token: String!
tokenExpiration: Int!
}
input UserInput {
email: String!
password: String!
}
`;