Skip to content
Discussion options

You must be logged in to vote

@hayes I finally got it. Just want to say thanks for all your support and samples that has greatly helped me figure out how to go about nexus and pothos connection fields. Hopefully that's the last issue I'd encounter regarding relay during this migration.

To prevent Nexus PageInfo and Pothos PageInfo from "duplicate typename" issue, I deleted the PageInfo before passing it in pothos schema builder like so

// Remove the PageInfo type to prevent Duplicate typename (Nexus has its own relay plugin which conflicts with Pothos relay plugin)
const modifiedSchema = schema;
const schemaTypes = modifiedSchema.getTypeMap();
if (schemaTypes['PageInfo']) {
	delete schemaTypes['PageInfo'];
}

export c…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@hayes
Comment options

@arvi
Comment options

@hayes
Comment options

@hayes
Comment options

@arviaccelo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by arvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants