Posts

Showing posts from March 30, 2019

Query with different types in GraphQL

Image
0 So I have a graphQL userType and EventType and on my userType I have to make a nested query using EventType but I also need to return user information but since EventType doesn't have fields same as user info so to pass my code on testing I had to manually copy-paste UserType to EventType but I dont want this to solution. is there a way to like merge types? I'm using mongoDB as my database so when trying to do a POPULATE the user info comes back but Graphql making it hard. sorry im still new to graphql. so this is what I did on EventType to pass the test. under fixme i copy the UserType module.exports = { EventType: new GraphQLObjectType({ name: 'Event', fields: () => ({ id: {type: GraphQLID}, organizerId: {type: new GraphQLList(GraphQLID)}, title:

__doPostBack when trying to impelent a Logout button

Image
0 Actually i'm new in Vb.Net and ASPX and i'm trying to add to my website a logout button but when i'm clicking it it doesn't work and giving me the following error in the console: Uncaught ReferenceError: __doPostBack is not defined at <anonymous>:1:1 (anonymous) @ VM45:1 Here is my <'a'> tag to which i'm trying to add the logout method: <li class="nav-item"> <a class="nav-link" href="#" id="ExitBtn" runat="server"> <i class="fa fa-sign-out" aria-hidden="true"></i> <p>Esci</p> </a> </li>