Resolver - custom endpoint mutation #230
              
                
                  
                  
                    Answered
                  
                  by
                    TriPSs
                  
              
          
                  
                    
                      danjirovec
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hello, I'm trying to create a custom mutation for my CustomerResolver and can't figure it out. What I want to do is make a create mutation on my Customer entity. This entity has relation to Membership entity and my goal is in one mutation create a Customer and Membership objects. That is not possible out-of-the-box with automatic CRUD resolver so I need to create a custom endpoint. How would I do that? Thanks for your help! | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            TriPSs
          
      
      
        Mar 1, 2024 
      
    
    Replies: 1 comment 7 replies
-
| Checkout this | 
Beta Was this translation helpful? Give feedback.
                  
                    7 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
That one should export
NestjsQueryTypeOrmModule.forFeature([Membership])I think, not the resolver.