Hi, I am using GrowthBook SDK for nodejs. After cr...
# ask-questions
n
Hi, I am using GrowthBook SDK for nodejs. After creating the feature on GrowthBook, I am not able to see it on the backend. This is how I’m trying to fetch the list of all features
Copy code
const data =  req.growthbook.getFeatures();
Whenever I am creating a new feature in “Sample Data” project, I am able to get the feature, but not when I’m creating it in a new project. Is there any way I can define the project while initialising the GrowthBook object? This is how I’m initialising.
Copy code
app.use(function (req, res, next) {
    req.growthbook = new GrowthBook({
        apiHost: "<http://localhost:3100>",
        clientKey: "hidden",
      enableDevMode: true,
      subscribeToChanges: true,
    });

    res.on("close", () => req.growthbook.destroy());
  
    req.growthbook
      .loadFeatures( { timeout: 1000 } )
      .then(() => next())
      .catch((e) => {
        console.error("Failed to load features from GrowthBook", e);
        next();
      });
  });
This is resolved, Needed to add the new project in the SDK connection
f
okay, cool